drew 5 anos atrás
pai
commit
df34ed5337
1 arquivos alterados com 3 adições e 5 exclusões
  1. 3 5
      src/main/resources/templates/ListViewTemplate.ftl

+ 3 - 5
src/main/resources/templates/ListViewTemplate.ftl

@@ -199,11 +199,9 @@
                 }).then(() => {
                     this.$message.success('删除成功');
                     this.getData();
-                }).catch(action => {
-                    if (action === 'cancel') {
-                        this.$message.info('删除取消');
-                    } else {
-                        this.$message.error('删除失败');
+                }).catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
                     }
                 })
             },