From 6f3381c267b051e69e31573c3f73a41a6c64a95e Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 21 Jan 2025 09:31:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E9=99=90=E5=88=B6=E7=99=BB=E5=BD=95=E5=90=8E=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index a42d08a0..8d58d82c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -100,8 +100,10 @@ service.interceptors.response.use( console.log(err) } router.push(`/login`) - this.$i18n.locale = 'zh' - this.setLanguage('zh') + // if (!this.$i18n.locale) { + // this.$i18n.locale = 'zh' + // this.setLanguage('zh') + // } this.$updateDictionary() }) } From 9e85e9705e3ad042ff43dccd6f4e30b0a9c450d8 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 21 Jan 2025 09:38:42 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E9=99=90=E5=88=B6=E7=99=BB=E5=BD=95=E5=90=8E=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 8d58d82c..230da40e 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -134,8 +134,8 @@ service.interceptors.response.use( } store.dispatch('user/logout').then(() => { router.push(`/login`) - this.$i18n.locale = 'zh' - this.setLanguage('zh') + // this.$i18n.locale = 'zh' + // this.setLanguage('zh') this.$updateDictionary() }) } else { From a3550c44bdee2978c5c0ddd7690bc44c9983b8db Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 21 Jan 2025 10:01:43 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E9=99=90=E5=88=B6=E7=99=BB=E5=BD=95=E5=90=8E=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 4 ++-- src/store/modules/user.js | 2 ++ src/utils/request-download.js | 6 +++--- src/utils/request.js | 12 ++++++------ src/views/blindResumeInfo/info.vue | 4 ++-- src/views/dashboard/bigdata.vue | 4 ++-- src/views/email-recompose/index.vue | 4 ++-- src/views/recompose/index.vue | 4 ++-- src/views/resumeInfo/index.vue | 4 ++-- .../trials/trials-layout/components/trialsNavbar.vue | 4 ++-- src/views/trials/trials-myinfo/account.vue | 4 ++-- src/views/trials/trials-myinfo/password.vue | 4 ++-- src/views/user/myInfo.vue | 4 ++-- 13 files changed, 31 insertions(+), 29 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 1800836a..9268d926 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -175,8 +175,8 @@ export default { } else { this.$router.push(`/login`) } - this.$i18n.locale = 'zh' - this.setLanguage('zh') + // //this.$i18n.locale = 'zh' + // //this.setLanguage('zh') this.$updateDictionary() }, editInfo() { diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 51cb716c..07cfc266 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -282,7 +282,9 @@ const actions = { }) resetRouter() removeName() + let lang = zzSessionStorage.getItem('lang') zzSessionStorage.clear() + zzSessionStorage.setItem('lang', lang) commit('RESET_STATE') } catch (e) { console.log(e) diff --git a/src/utils/request-download.js b/src/utils/request-download.js index 90bf9d29..03ab1808 100644 --- a/src/utils/request-download.js +++ b/src/utils/request-download.js @@ -89,9 +89,9 @@ service.interceptors.response.use( }) store.dispatch('user/logout').then(() => { router.push(`/login`) - this.$i18n.locale = 'zh' - this.setLanguage('zh') - this.$updateDictionary() + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') + // this.$updateDictionary() }) } } else { diff --git a/src/utils/request.js b/src/utils/request.js index 230da40e..a8d5e132 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -101,10 +101,10 @@ service.interceptors.response.use( } router.push(`/login`) // if (!this.$i18n.locale) { - // this.$i18n.locale = 'zh' - // this.setLanguage('zh') + // //this.$i18n.locale = 'zh' + // //this.setLanguage('zh') // } - this.$updateDictionary() + // this.$updateDictionary() }) } switch (status) { @@ -134,9 +134,9 @@ service.interceptors.response.use( } store.dispatch('user/logout').then(() => { router.push(`/login`) - // this.$i18n.locale = 'zh' - // this.setLanguage('zh') - this.$updateDictionary() + // //this.$i18n.locale = 'zh' + // //this.setLanguage('zh') + // this.$updateDictionary() }) } else { setTimer({ diff --git a/src/views/blindResumeInfo/info.vue b/src/views/blindResumeInfo/info.vue index 2c2305e2..1fd40263 100644 --- a/src/views/blindResumeInfo/info.vue +++ b/src/views/blindResumeInfo/info.vue @@ -86,8 +86,8 @@ export default { this.setLanguage('en') this.$updateDictionary() } else { - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() } this.title = this.doctorInfo.BasicInfoView?`${this.doctorInfo.BasicInfoView.BlindName}${this.$t('resumeInfo:title:Details')}`:'' diff --git a/src/views/dashboard/bigdata.vue b/src/views/dashboard/bigdata.vue index e551f087..adbfc643 100644 --- a/src/views/dashboard/bigdata.vue +++ b/src/views/dashboard/bigdata.vue @@ -131,8 +131,8 @@ export default { .then(() => { this.$store.dispatch('user/logout').then(res => { this.$router.push(`/login`) - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() }) }) diff --git a/src/views/email-recompose/index.vue b/src/views/email-recompose/index.vue index 49e12126..7e3e8f42 100644 --- a/src/views/email-recompose/index.vue +++ b/src/views/email-recompose/index.vue @@ -195,8 +195,8 @@ export default { this.$router.push(`/login`) } if (!this.$i18n.locale) { - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') } this.$updateDictionary() }, diff --git a/src/views/recompose/index.vue b/src/views/recompose/index.vue index 7f43ecbb..da7365e4 100644 --- a/src/views/recompose/index.vue +++ b/src/views/recompose/index.vue @@ -145,8 +145,8 @@ export default { this.$router.push(`/login`) } if (!this.$i18n.locale) { - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') } this.$updateDictionary() }, diff --git a/src/views/resumeInfo/index.vue b/src/views/resumeInfo/index.vue index 3a801144..50c565c1 100644 --- a/src/views/resumeInfo/index.vue +++ b/src/views/resumeInfo/index.vue @@ -98,8 +98,8 @@ export default { this.setLanguage('en') this.$updateDictionary() } else { - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() } this.title =this.doctorInfo.BasicInfoView?`${this.doctorInfo.BasicInfoView.FirstName} ${this.doctorInfo.BasicInfoView.LastName}${this.$t('resumeInfo:title:Details')}`:'' diff --git a/src/views/trials/trials-layout/components/trialsNavbar.vue b/src/views/trials/trials-layout/components/trialsNavbar.vue index ee4f3ba0..c5c47cc9 100644 --- a/src/views/trials/trials-layout/components/trialsNavbar.vue +++ b/src/views/trials/trials-layout/components/trialsNavbar.vue @@ -221,8 +221,8 @@ export default { async logout() { await this.$store.dispatch('user/logout') this.$router.push(`/login`) - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() }, go(value) { diff --git a/src/views/trials/trials-myinfo/account.vue b/src/views/trials/trials-myinfo/account.vue index 401dcaa3..feb9161b 100644 --- a/src/views/trials/trials-myinfo/account.vue +++ b/src/views/trials/trials-myinfo/account.vue @@ -333,8 +333,8 @@ export default { } else { this.$router.push(`/login`) } - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() }, }, diff --git a/src/views/trials/trials-myinfo/password.vue b/src/views/trials/trials-myinfo/password.vue index 8779f816..f16a0569 100644 --- a/src/views/trials/trials-myinfo/password.vue +++ b/src/views/trials/trials-myinfo/password.vue @@ -151,8 +151,8 @@ export default { } else { this.$router.push(`/login`) } - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() }, }, diff --git a/src/views/user/myInfo.vue b/src/views/user/myInfo.vue index 94561ea4..17ccc97b 100644 --- a/src/views/user/myInfo.vue +++ b/src/views/user/myInfo.vue @@ -569,8 +569,8 @@ export default { } else { this.$router.push(`/login`) } - this.$i18n.locale = 'zh' - this.setLanguage('zh') + //this.$i18n.locale = 'zh' + //this.setLanguage('zh') this.$updateDictionary() }, },