소스 검색

修改逻辑

chenrui  3 년 전
부모
커밋
774f3557e1
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/views/systemManagement/EditSystem/index.vue
  2. 2 2
      src/views/systemManagement/addSystem/index.vue

+ 2 - 2
src/views/systemManagement/EditSystem/index.vue

@@ -290,12 +290,12 @@ export default {
   components: { Dialog },
   watch: {
     keyWords() {
-      if (this.keyWords.length == 0) {
+      if (this.keyWords.length == 0 || this.keyWords) {
         this.FormData.Unuselist = this.FormData.Unuselists;
       }
     },
     keyWordsUp() {
-      if (this.keyWordsUp.length == 0) {
+      if (this.keyWordsUp.length == 0 || this.keyWordsUp) {
         this.FormData.UseList = this.FormData.UseLists;
       }
     },

+ 2 - 2
src/views/systemManagement/addSystem/index.vue

@@ -286,12 +286,12 @@ export default {
   },
   watch: {
     keyWords() {
-      if (this.keyWords.length == 0) {
+      if (this.keyWords.length == 0 || this.keyWords) {
         this.FormData.Unuselist = this.FormData.Unuselists;
       }
     },
     keyWordsUp() {
-      if (this.keyWordsUp.length == 0) {
+      if (this.keyWordsUp.length == 0 || this.keyWordsUp) {
         this.FormData.UseList = this.FormData.UseLists;
       }
     },