Forráskód Böngészése

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

疯狂的狮子li 3 éve
szülő
commit
60f3757672

+ 1 - 0
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm

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

+ 1 - 0
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm

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

+ 1 - 0
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/v3/index-tree.vue.vm

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

+ 1 - 0
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/v3/index.vue.vm

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