fix: 去除 status校验
This commit is contained in:
parent
3bfdfea016
commit
144b2aa81c
@ -127,7 +127,7 @@ const sendHandle = async () => {
|
|||||||
try {
|
try {
|
||||||
const res = await customizeHttp(toRaw(targetData.value.request), toRaw(chartEditStore.requestGlobalConfig))
|
const res = await customizeHttp(toRaw(targetData.value.request), toRaw(chartEditStore.requestGlobalConfig))
|
||||||
loading.value = false
|
loading.value = false
|
||||||
if (res && res.status === ResultEnum.SUCCESS) {
|
if (res && res.data) {
|
||||||
targetData.value.option.dataset = newFunctionHandle(res.data, targetData.value.filter)
|
targetData.value.option.dataset = newFunctionHandle(res.data, targetData.value.filter)
|
||||||
showMatching.value = true
|
showMatching.value = true
|
||||||
return
|
return
|
||||||
|
@ -17,15 +17,13 @@
|
|||||||
</template>
|
</template>
|
||||||
编辑
|
编辑
|
||||||
</n-button>
|
</n-button>
|
||||||
<n-button tertiary size="small" @click="delFilter">
|
<n-button tertiary size="small" @click="delFilter"> 删除 </n-button>
|
||||||
删除
|
|
||||||
</n-button>
|
|
||||||
</n-space>
|
</n-space>
|
||||||
</template>
|
</template>
|
||||||
</n-card>
|
</n-card>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<n-button class="go-ml-3" @click="addFilter">
|
<n-button class="go-ml-3" @click="addFilter">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon>
|
<n-icon>
|
||||||
<filter-icon />
|
<filter-icon />
|
||||||
@ -125,7 +123,7 @@ const sourceData = ref<any>('')
|
|||||||
const fetchTargetData = async () => {
|
const fetchTargetData = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await customizeHttp(toRaw(targetData.value.request), toRaw(chartEditStore.requestGlobalConfig))
|
const res = await customizeHttp(toRaw(targetData.value.request), toRaw(chartEditStore.requestGlobalConfig))
|
||||||
if (res && res.status === ResultEnum.SUCCESS) {
|
if (res && res.data) {
|
||||||
sourceData.value = res.data
|
sourceData.value = res.data
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user