mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
feat: 合并dev
This commit is contained in:
commit
6d91262faa
@ -55,6 +55,8 @@ axiosInstance.interceptors.response.use(
|
|||||||
}
|
}
|
||||||
const { code } = res.data as { code: number }
|
const { code } = res.data as { code: number }
|
||||||
|
|
||||||
|
if (code === undefined || code === null) return Promise.resolve(res)
|
||||||
|
|
||||||
// 成功
|
// 成功
|
||||||
if (code === ResultEnum.SUCCESS) {
|
if (code === ResultEnum.SUCCESS) {
|
||||||
return Promise.resolve(res.data)
|
return Promise.resolve(res.data)
|
||||||
|
@ -10,8 +10,8 @@ export default {
|
|||||||
status: 200,
|
status: 200,
|
||||||
msg: '请求成功',
|
msg: '请求成功',
|
||||||
data: {
|
data: {
|
||||||
dimensions: ['product', 'dataOne'],
|
dimensions: ['product', 'dataOne'],
|
||||||
'source|50': [
|
'source|20': [
|
||||||
{
|
{
|
||||||
product: '@name',
|
product: '@name',
|
||||||
'dataOne|0-900': 3
|
'dataOne|0-900': 3
|
||||||
@ -37,12 +37,13 @@ export default {
|
|||||||
status: 200,
|
status: 200,
|
||||||
msg: '请求成功',
|
msg: '请求成功',
|
||||||
data: {
|
data: {
|
||||||
dimensions: ['product', 'dataOne', 'dataTwo'],
|
dimensions: ['product', 'dataOne', 'dataTwo', 'dataThree'],
|
||||||
'source|50': [
|
'source|20': [
|
||||||
{
|
{
|
||||||
product: '@name',
|
product: '@name',
|
||||||
'dataOne|100-900': 3,
|
'dataOne|100-900': 3,
|
||||||
'dataTwo|100-900': 3
|
'dataTwo|100-900': 3,
|
||||||
|
'dataThree|100-900': 3
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ export const JSONStringify = <T>(data: T) => {
|
|||||||
}
|
}
|
||||||
// 处理 undefined 丢失问题
|
// 处理 undefined 丢失问题
|
||||||
if (typeof val === 'undefined') {
|
if (typeof val === 'undefined') {
|
||||||
return 'undefined'
|
return null
|
||||||
}
|
}
|
||||||
return val
|
return val
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user