fix: 去除 status校验

This commit is contained in:
奔跑的面条 2022-07-20 18:36:22 +08:00
parent 3bfdfea016
commit 144b2aa81c
2 changed files with 4 additions and 6 deletions

View File

@ -127,7 +127,7 @@ const sendHandle = async () => {
try {
const res = await customizeHttp(toRaw(targetData.value.request), toRaw(chartEditStore.requestGlobalConfig))
loading.value = false
if (res && res.status === ResultEnum.SUCCESS) {
if (res && res.data) {
targetData.value.option.dataset = newFunctionHandle(res.data, targetData.value.filter)
showMatching.value = true
return

View File

@ -17,15 +17,13 @@
</template>
编辑
</n-button>
<n-button tertiary size="small" @click="delFilter">
删除
</n-button>
<n-button tertiary size="small" @click="delFilter"> 删除 </n-button>
</n-space>
</template>
</n-card>
</template>
<template v-else>
<n-button class="go-ml-3" @click="addFilter">
<n-button class="go-ml-3" @click="addFilter">
<template #icon>
<n-icon>
<filter-icon />
@ -125,7 +123,7 @@ const sourceData = ref<any>('')
const fetchTargetData = async () => {
try {
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
return
}