diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index ec51e3eab..22f0489c1 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -1806,6 +1806,11 @@ const cn = { clear: '清空', enable: '启用', update: '更新', + edit: '编辑个人中心', + editProfile: '编辑个人中心', + username: '用户名', + name: '名称', + language: '语言', operationRecord: '操作记录', changePassword: '修改密码', oldPassword: '当前密码', diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 9694daa7b..b1d2101a9 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -1689,6 +1689,11 @@ const en = { clear: 'Clear', enable: 'Enable', update: 'Update', + edit: 'Edit profile', + editProfile: 'Edit Profile', + username: 'User name', + name: 'Name', + language: 'Language', operationRecord: 'Operation log', changePassword: 'Change password', oldPassword: 'Current password', diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue index 86141d617..5c1b97662 100644 --- a/nezha-fronted/src/components/common/login.vue +++ b/nezha-fronted/src/components/common/login.vue @@ -1,5 +1,5 @@ @@ -177,7 +178,7 @@ diff --git a/nezha-fronted/src/components/layout/header.vue b/nezha-fronted/src/components/layout/header.vue index 86fd49393..e632c4fad 100644 --- a/nezha-fronted/src/components/layout/header.vue +++ b/nezha-fronted/src/components/layout/header.vue @@ -42,7 +42,7 @@
English
-
中文
+
简体中文
@@ -157,13 +157,13 @@ export default { document.location.href = '/' }) }, - refreshLang () { - this.language = localStorage.getItem('nz-language') - this.$i18n.locale = this.language - this.$nextTick(() => { - window.location.reload() - }) - }, + // refreshLang () { + // this.language = localStorage.getItem('nz-language') + // this.$i18n.locale = this.language + // this.$nextTick(() => { + // // window.location.reload() + // }) + // }, showPinDialog () { // this.showChangePin = true this.$router.push({ @@ -184,7 +184,7 @@ export default { initEvent () { bus.$on('login', () => { this.username = sessionStorage.getItem('nz-username') - this.refreshLang() + // this.refreshLang() }) if (window.history && window.history.pushState) { history.pushState(null, null, document.URL) diff --git a/nezha-fronted/src/components/page/config/profile.vue b/nezha-fronted/src/components/page/config/profile.vue index 492c4855f..15b7b6c86 100644 --- a/nezha-fronted/src/components/page/config/profile.vue +++ b/nezha-fronted/src/components/page/config/profile.vue @@ -30,6 +30,10 @@ +
@@ -39,7 +43,7 @@
- +
{{$t('profile.twoFactorAuthentication')}}
@@ -126,20 +130,27 @@
+ + +