|
@@ -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);
|
|
});
|
|
});
|