fix 修复 点击删除后点击取消控制台报错问题

This commit is contained in:
疯狂的狮子li 2022-08-23 16:19:31 +08:00
parent f1a4b363c6
commit ba2994210c
4 changed files with 5 additions and 2 deletions

View File

@ -504,6 +504,7 @@ export default {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.#[[$modal]]#.msgSuccess("删除成功"); this.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
}); });

View File

@ -563,8 +563,8 @@ export default {
this.#[[$modal]]#.msgSuccess("删除成功"); this.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
}); });
}, },
#if($table.sub) #if($table.sub)
/** ${subTable.functionName}序号 */ /** ${subTable.functionName}序号 */

View File

@ -487,6 +487,7 @@ function handleDelete(row) {
loading.value = false; loading.value = false;
getList(); getList();
proxy.#[[$modal]]#.msgSuccess("删除成功"); proxy.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {
}).finally(() => { }).finally(() => {
loading.value = false; loading.value = false;
}); });

View File

@ -553,6 +553,7 @@ function handleDelete(row) {
loading.value = true; loading.value = true;
getList(); getList();
proxy.#[[$modal]]#.msgSuccess("删除成功"); proxy.#[[$modal]]#.msgSuccess("删除成功");
}).catch(() => {
}).finally(() => { }).finally(() => {
loading.value = false; loading.value = false;
}); });