-
diff --git a/nezha-fronted/src/components/page/config/changePwd.vue b/nezha-fronted/src/components/page/config/changePwd.vue
index baf66eb2e..ed661ebe7 100644
--- a/nezha-fronted/src/components/page/config/changePwd.vue
+++ b/nezha-fronted/src/components/page/config/changePwd.vue
@@ -2,17 +2,17 @@
-
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -46,14 +46,14 @@ export default {
if (value && value != '') {
callback()
} else {
- callback(new Error(temp.$t('config.account.invalidPwd')))
+ callback(new Error(temp.$t('config.user.invalidPwd')))
}
}
const validateConfirmPass = (rule, value, callback) => {
if (value && value != '' && value == temp.user.newPwd) {
callback()
} else {
- callback(new Error(temp.$t('config.account.confirmPwdErr')))
+ callback(new Error(temp.$t('config.user.confirmPwdErr')))
}
}
return {
@@ -67,7 +67,7 @@ export default {
rules: {
pwd: [{ required: true, message: this.$t('validate.required'), trigger: 'blur' }],
newPwd: [{ required: true, message: this.$t('validate.required'), trigger: 'blur' }, { validator: validatePass, trigger: 'blur' }],
- confirmPwd: [{ required: true, message: this.$t('config.account.reinputPwd'), trigger: 'blur' }, { validator: validateConfirmPass, trigger: 'blur' }]
+ confirmPwd: [{ required: true, message: this.$t('config.user.reinputPwd'), trigger: 'blur' }, { validator: validateConfirmPass, trigger: 'blur' }]
},
visible: false
}
@@ -94,7 +94,7 @@ export default {
pin: this.user.pwd,
newPin: this.user.newPwd
}
- this.$get('/sys/user/password?pin=' + paramObj.pin + '&newPin=' + paramObj.newPin).then(response => {
+ this.$get('/sys/user/pin?oldPin=' + paramObj.pin + '&newPin=' + paramObj.newPin).then(response => {
if (response && response.code == 200) {
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.saveSuccess') })
this.close()
diff --git a/nezha-fronted/src/components/page/config/operationLog.vue b/nezha-fronted/src/components/page/config/operationLog.vue
index 3481112e7..db7f1b603 100644
--- a/nezha-fronted/src/components/page/config/operationLog.vue
+++ b/nezha-fronted/src/components/page/config/operationLog.vue
@@ -6,6 +6,7 @@
:layout="['searchInput', 'elementSet']"
:custom-table-title.sync="tools.customTableTitle"
:from="fromRoute.operationLog"
+ @search="search"
:search-msg="searchMsg">
-
+