zhangjie 3 år sedan
förälder
incheckning
e12f1046fb
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/modules/analysis/components/ModifyBaseConfig.vue

+ 2 - 1
src/modules/analysis/components/ModifyBaseConfig.vue

@@ -112,7 +112,8 @@ export default {
       "evaluationList"
     ]),
     compName() {
-      const stepVal = this.steps[this.curStep].val;
+      const stepVal = this.steps[this.curStep] && this.steps[this.curStep].val;
+      if (!stepVal) return null;
       return `${stepVal}-config`;
     },
     insCont() {