|
@@ -223,7 +223,7 @@ export default {
|
|
|
deep: true
|
|
|
},
|
|
|
cJson: {
|
|
|
- handler(newValue) {
|
|
|
+ handler(newValue,oldVal) {
|
|
|
if(newValue.file && this.checkJson.file && newValue.file.length !== this.checkJson.file.length){
|
|
|
this.checkJson = this.depthCopy(newValue)
|
|
|
this.$forceUpdate()
|
|
@@ -233,6 +233,9 @@ export default {
|
|
|
}else if(!newValue.file && this.checkJson.file){
|
|
|
this.checkJson = this.depthCopy(newValue)
|
|
|
this.$forceUpdate()
|
|
|
+ }else if (JSON.stringify(newValue) !== JSON.stringify(oldVal)) {
|
|
|
+ this.checkJson = this.depthCopy(newValue)
|
|
|
+ this.$forceUpdate()
|
|
|
}
|
|
|
},
|
|
|
deep: true
|