summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyh <[email protected]>2023-06-08 16:43:17 +0800
committerzyh <[email protected]>2023-06-08 16:43:17 +0800
commita956f8e88be54884ba57111c002f2c19404dce4a (patch)
treedc2e6cd408cbaf4dc36298f6dfd6809269939371
parent045d1827c701e278228ba611059931a337adee6e (diff)
fix:优化变量校验方式
-rw-r--r--nezha-fronted/src/components/common/rightBox/panelBox.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/common/rightBox/panelBox.vue b/nezha-fronted/src/components/common/rightBox/panelBox.vue
index 11783c00c..e6ac0c219 100644
--- a/nezha-fronted/src/components/common/rightBox/panelBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/panelBox.vue
@@ -102,7 +102,7 @@
{ validator: variableValidator,trigger: 'blur'},
]"
>
- <el-input v-model="item.name" :placeholder="$t('overall.placeHolder')" size="small" @change="hideError('variables', index)"/>
+ <el-input v-model="item.name" :placeholder="$t('overall.placeHolder')" size="small" @change="hideError('variables', index, 'name')"/>
</el-form-item>
<!-- Type -->
<el-form-item class="form-item--half-width" :label='$t("overall.type")' :prop="'param.variables.' + index + '.type'" :rules="{ required: true, message: $t('validate.required'), trigger: 'blur'}">