Parcourir la source

fix 修复代码生成 删除按钮报错 loading 不取消问题

疯狂的狮子li il y a 3 ans
Parent
commit
a5a71bf505

+ 3 - 1
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm

@@ -505,7 +505,9 @@ export default {
 		  this.loading = false;
           this.getList();
           this.msgSuccess("删除成功");
-        }).catch(() => {});
+      }).finally(() => {
+              this.loading = false;
+      });
     }
   }
 };

+ 3 - 1
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm

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