Ver código fonte

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

smallchill 6 anos atrás
pai
commit
c0f8764a4c
2 arquivos alterados com 2 adições e 0 exclusões
  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 => {