Ver Fonte

fix(sixHatPage): 修正workData监听器中变量名错误

将监听器内误写的newValue/oldValue修正为正确的newVal/oldVal,避免变量未定义报错
lsc há 4 dias atrás
pai
commit
b4c23e9114
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/components/pages/workPage/components/sixHatPage.vue

+ 1 - 1
src/components/pages/workPage/components/sixHatPage.vue

@@ -683,7 +683,7 @@ export default {
     workData: {
       handler(newVal, oldVal) {
         const _data = JSON.parse(JSON.stringify((newVal && newVal.json) || {}));
-        if (JSON.stringify(newValue) != JSON.stringify(oldValue) || JSON.stringify(this.work) != JSON.stringify(_data)) {
+        if (JSON.stringify(newVal) != JSON.stringify(oldVal) || JSON.stringify(this.work) != JSON.stringify(_data)) {
           // 构造默认 work 值(含所有配置字段)
           const base = {
             stage: 'member',