feat: 优化交互组件

This commit is contained in:
奔跑的面条
2023-03-11 16:58:32 +08:00
parent 3f3f54f3b7
commit 05bb2a5eb6
32 changed files with 392 additions and 302 deletions
@@ -135,8 +135,9 @@ const sendHandle = async () => {
showMatching.value = true
return
}
window['$message'].warning('数据异常,请检查参数')
window['$message'].warning('没有拿到返回值,请检查接口')
} catch (error) {
console.error(error);
loading.value = false
window['$message'].warning('数据异常,请检查参数!')
}
@@ -132,8 +132,9 @@ const fetchTargetData = async () => {
sourceData.value = res
return
}
window['$message'].warning('数据异常,请检查参数')
window['$message'].warning('没有拿到返回值,请检查接口')
} catch (error) {
console.error(error);
window['$message'].warning('数据异常,请检查参数!')
}
}
@@ -114,10 +114,6 @@ const sendHandle = async () => {
}
loading.value = true
try {
// const res = await customizeHttp(
// toRaw(pondData.value?.dataPondRequestConfig),
// toRaw(chartEditStore.getRequestGlobalConfig)
// )
const res = await customizeHttp(toRaw(targetData.value.request), toRaw(chartEditStore.getRequestGlobalConfig))
loading.value = false
if (res) {
@@ -126,8 +122,9 @@ const sendHandle = async () => {
showMatching.value = true
return
}
window['$message'].warning('数据异常,请检查参数')
window['$message'].warning('没有拿到返回值,请检查接口')
} catch (error) {
console.error(error);
loading.value = false
window['$message'].warning('数据异常,请检查参数!')
}