lsc hai 2 días
pai
achega
0b2de040bd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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: {
     workData: {
       handler: function (newValue, oldValue) {
       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));
           let _data = JSON.parse(JSON.stringify(this.workData.json));
           if (!_data.fileList) {
           if (!_data.fileList) {
             _data.fileList = [];
             _data.fileList = [];