xiongzhu 4 anni fa
parent
commit
f86f0b1cfc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/main/resources/templates/EditViewTemplate.ftl

+ 1 - 1
src/main/resources/templates/EditViewTemplate.ftl

@@ -286,7 +286,7 @@
                     });
             },
             onDelete() {
-                this.$alert('删除将无法恢复,确认要删除么?', '警告', {type: 'error'}).then(() => {
+                this.$confirm('删除将无法恢复,确认要删除么?', '警告', {type: 'error'}).then(() => {
                     return this.$http.post(`/${model.className?uncap_first}/del/${r'${this.formData.id}'}`)
                 }).then(() => {
                     this.$message.success('删除成功');