qinzhipeng_v@didiglobal.com 4 years ago
parent
commit
279934e676
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/mock/httprule.vue

+ 4 - 2
src/views/mock/httprule.vue

@@ -578,8 +578,10 @@ export default {
         this.isNotAnyRequest = true
         this.showguiz = false
         for (const a of this.ruleForm.metaRuleList) {
-          this.ruleForm.expression1 = a.expression.split('.')[0]
-          this.ruleForm.expression2 = a.expression.split('.')[1]
+          // this.ruleForm.expression1 = a.expression.split('.')[0]
+          this.$set(this.ruleForm, 'expression1', a.expression.split('.')[0])
+          // this.ruleForm.expression2 = a.expression.split('.')[1]
+          this.$set(this.ruleForm, 'expression2', a.expression.split('.')[1])
           this.$set(this.ruleForm, 'judgeType', a.judgeType)
           this.$set(this.ruleForm, 'judgeValue', a.judgeValue)
         }