lsc 2 päivää sitten
vanhempi
commit
0b2de040bd
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/components/pages/workPage/components/photo.vue

+ 2 - 1
src/components/pages/workPage/components/photo.vue

@@ -69,7 +69,8 @@ export default {
     },
     workData: {
       handler: function (newValue, oldValue) {
-        if (JSON.stringify(newValue) != JSON.stringify(oldValue)) {
+        let _data = JSON.parse(JSON.stringify(this.workData.json));
+        if (JSON.stringify(newValue) != JSON.stringify(oldValue) || JSON.stringify(this.work) != JSON.stringify(_data)) {
           let _data = JSON.parse(JSON.stringify(this.workData.json));
           if (!_data.fileList) {
             _data.fileList = [];