1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-26 19:20:21 +08:00

fix: lint fix

This commit is contained in:
zclzone
2024-07-19 14:55:02 +08:00
parent 7dde0bbfc6
commit f28e3a946e
11 changed files with 25 additions and 12 deletions

View File

@@ -145,6 +145,7 @@ async function handleQuery() {
}
}
catch (error) {
console.error(error)
tableData.value = []
pagination.itemCount = 0
}

View File

@@ -144,11 +144,12 @@ async function handleOk(data) {
// 调用onOk函数传入data参数
const res = await modalOptions.value.onOk(data)
// 如果onOk函数的返回值不为false则关闭模态框
res !== false && close()
if (res !== false)
close()
}
catch (error) {
okLoading.value = false
console.error(error)
okLoading.value = false
}
}
@@ -163,11 +164,12 @@ async function handleCancel(data) {
const res = await modalOptions.value.onCancel(data)
// 如果onCancel函数的返回值不为false则关闭模态框
res !== false && close()
if (res !== false)
close()
}
catch (error) {
okLoading.value = false
console.error(error)
okLoading.value = false
}
}