Commit 8b8c6ee1 by wusiyi

fix: bug

parent e51ff0cb
......@@ -271,14 +271,17 @@ const deleteArea = async (id: number) => {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(async () => {
loading.value = true
const res = await deleteAreaApi(id)
if (res.code !== 200) return
ElMessage.success('删除成功')
await getSortingRuleList()
})
loading.value = false
.then(async () => {
loading.value = true
const res = await deleteAreaApi(id)
if (res.code !== 200) return
ElMessage.success('删除成功')
await getSortingRuleList()
})
.finally(() => {
loading.value = false
})
}
// 查看日志
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment