Explorar el Código

:bug: 修复dept、menu模块点击查看再新增会保留之前数据的问题

smallchill hace 6 años
padre
commit
c0f8764a4c
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      src/views/system/dept.vue
  2. 1 0
      src/views/system/menu.vue

+ 1 - 0
src/views/system/dept.vue

@@ -328,6 +328,7 @@
         done();
       },
       beforeClose(done) {
+        this.$refs.crud.tableForm = {};
         this.$refs.crud.value.parentId = "";
         this.$refs.crud.value.addDisabled = false;
         this.$refs.crud.option.column.filter(item => {

+ 1 - 0
src/views/system/menu.vue

@@ -359,6 +359,7 @@
         done();
       },
       beforeClose(done) {
+        this.$refs.crud.tableForm = {};
         this.$refs.crud.value.parentId = "";
         this.$refs.crud.value.addDisabled = false;
         this.$refs.crud.option.column.filter(item => {