SanHQin 8 mēneši atpakaļ
vecāks
revīzija
a208b008b6
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      src/components/pages/test/check/aiBoxRight.vue

+ 4 - 2
src/components/pages/test/check/aiBoxRight.vue

@@ -490,7 +490,8 @@ export default {
       },
       },
       answerArray: [],
       answerArray: [],
       fileId: [],
       fileId: [],
-      fileList: []
+      fileList: [],
+			copyWorksArray:null
     };
     };
   },
   },
   watch: {
   watch: {
@@ -512,10 +513,11 @@ export default {
       immediate: false,
       immediate: false,
       deep: true,
       deep: true,
       handler(newValue, oldValue) {
       handler(newValue, oldValue) {
-        if (newValue.length) {
+        if (newValue.length && JSON.stringify(newValue)!==this.copyWorksArray) {
           this.$emit("clearFileData");
           this.$emit("clearFileData");
           this.fileId = [];
           this.fileId = [];
 					this.fileList = [];
 					this.fileList = [];
+					this.copyWorksArray = JSON.stringify(newValue);
           newValue.forEach(el => {
           newValue.forEach(el => {
             this.setJson(el);
             this.setJson(el);
           });
           });