diff --git a/src/resources/mixins/formMixins.js b/src/resources/mixins/formMixins.js index f5070bc756286257cb703032119c9a230a5b7d9d..f0d75d7abb8730c57fb76b949609e72a21072350 100644 --- a/src/resources/mixins/formMixins.js +++ b/src/resources/mixins/formMixins.js @@ -227,14 +227,17 @@ export default { //根据自定义errorMessage改变isValidPass if (this.validMesage) { this.isValidPass = false; - } else { + } else { this.isValidPass = true; } }, validateList() { this.currentValidList = this.filterValid(this.validateList) || []; - this.validMesage = ''; - this.isValidPass = true; + if (this.$utils.isEmpty(this.currentValidList)) { + // 修复传递errorMessage错误提示文案没有显示问题 + this.validMesage = ''; + this.isValidPass = true; + } } } }; diff --git a/src/views/pages/deploy/application-config/config/env/env-autoconfig-edit.vue b/src/views/pages/deploy/application-config/config/env/env-autoconfig-edit.vue index 7fb033e917122ad956b18e0e5ae3f4be647e6727..f97a06167bd5b5560f24049917cf7f3b240e3176 100644 --- a/src/views/pages/deploy/application-config/config/env/env-autoconfig-edit.vue +++ b/src/views/pages/deploy/application-config/config/env/env-autoconfig-edit.vue @@ -231,7 +231,6 @@ export default { if (value) { let currentValue = this.$utils.deepClone(row); currentValue.value = ''; - currentValue.type = ''; this.$set(this.tableData.tbodyList, index, currentValue); } },