SanHQin 9 tháng trước cách đây
mục cha
commit
a208b008b6
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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: [],
       fileId: [],
-      fileList: []
+      fileList: [],
+			copyWorksArray:null
     };
   },
   watch: {
@@ -512,10 +513,11 @@ export default {
       immediate: false,
       deep: true,
       handler(newValue, oldValue) {
-        if (newValue.length) {
+        if (newValue.length && JSON.stringify(newValue)!==this.copyWorksArray) {
           this.$emit("clearFileData");
           this.fileId = [];
 					this.fileList = [];
+					this.copyWorksArray = JSON.stringify(newValue);
           newValue.forEach(el => {
             this.setJson(el);
           });