Commit 8b8c6ee1 by wusiyi

fix: bug

parent e51ff0cb
...@@ -271,14 +271,17 @@ const deleteArea = async (id: number) => { ...@@ -271,14 +271,17 @@ const deleteArea = async (id: number) => {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}).then(async () => { })
.then(async () => {
loading.value = true loading.value = true
const res = await deleteAreaApi(id) const res = await deleteAreaApi(id)
if (res.code !== 200) return if (res.code !== 200) return
ElMessage.success('删除成功') ElMessage.success('删除成功')
await getSortingRuleList() await getSortingRuleList()
}) })
.finally(() => {
loading.value = false 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