diff --git a/nezha-fronted/src/assets/css/common/rightBoxCommon.scss b/nezha-fronted/src/assets/css/common/rightBoxCommon.scss index ff493c21a..e6182c1bb 100644 --- a/nezha-fronted/src/assets/css/common/rightBoxCommon.scss +++ b/nezha-fronted/src/assets/css/common/rightBoxCommon.scss @@ -221,7 +221,7 @@ align-items: center; justify-content: center; height: 70px; - box-shadow: -3px 0 8px -3px rgba(205,205,205,0.77); + box-shadow: $--right-box-shadow; } .footer__btn { margin: 0 15px; diff --git a/nezha-fronted/src/components/common/mixin/system/systemMixin.js b/nezha-fronted/src/components/common/mixin/system/systemMixin.js index e556267e8..4bd5b88d8 100644 --- a/nezha-fronted/src/components/common/mixin/system/systemMixin.js +++ b/nezha-fronted/src/components/common/mixin/system/systemMixin.js @@ -252,7 +252,7 @@ export default { this.$refs.emailForm.clearValidate() } if (type == 'monitor') { - + localStorage.setItem('nz-prometheus-federation-enabled', this.monitor.prometheus_federation_enabled) } this[type + 'Copy'] = Object.assign({}, this[type]) } diff --git a/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue b/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue index de3cfa92f..8de01efaf 100644 --- a/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue +++ b/nezha-fronted/src/components/common/rightBox/snmpCredentialBox.vue @@ -33,7 +33,7 @@ - + @@ -50,7 +50,7 @@ - + @@ -64,7 +64,7 @@ - + @@ -102,6 +102,9 @@ export default { name: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], + 'config.username': [ + { required: true, message: this.$t('validate.required'), trigger: 'blur' } + ], remark: [ // { required: true, message: this.$t('validate.required'), trigger: 'blur' } ],