diff --git a/nezha-fronted/build/webpack.prod.conf.js b/nezha-fronted/build/webpack.prod.conf.js index e0f678577..24144ddff 100644 --- a/nezha-fronted/build/webpack.prod.conf.js +++ b/nezha-fronted/build/webpack.prod.conf.js @@ -367,6 +367,7 @@ if (process.env.NODE_ENV == 'development') { { delete: [ path.join(__dirname, '../dist', '/config.json'), + path.join(__dirname, '../dist', '/*.js'), path.join(__dirname, '../.cache/') ] }, diff --git a/nezha-fronted/src/components/common/rightBox/agentBox.vue b/nezha-fronted/src/components/common/rightBox/agentBox.vue index 517cb84aa..d624de58b 100644 --- a/nezha-fronted/src/components/common/rightBox/agentBox.vue +++ b/nezha-fronted/src/components/common/rightBox/agentBox.vue @@ -119,6 +119,12 @@ export default { ], type: [ { required: true, message: this.$t('validate.required'), trigger: 'change' } + ], + token: [ + { required: true, message: this.$t('validate.required'), trigger: 'blur' } + ], + protocol: [ + { required: true, message: this.$t('validate.required'), trigger: 'change' } ] }, editPromServer: {}, diff --git a/nezha-fronted/src/components/common/rightBox/ipamBox.vue b/nezha-fronted/src/components/common/rightBox/ipamBox.vue index 198fc6006..f71b70cf4 100644 --- a/nezha-fronted/src/components/common/rightBox/ipamBox.vue +++ b/nezha-fronted/src/components/common/rightBox/ipamBox.vue @@ -132,7 +132,7 @@ export default { { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], 'dc.name': [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } + { required: true, message: this.$t('validate.required'), trigger: 'change' } ] }, dcData: []