From 62bead5c5090d285e24a503dce4034772f9741cc Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:20:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=20(#4487)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 2 ++ frontend/src/lang/modules/tw.ts | 2 ++ frontend/src/lang/modules/zh.ts | 2 ++ frontend/src/routers/index.ts | 2 +- frontend/src/views/login/index.vue | 2 +- frontend/src/views/setting/license/index.vue | 15 +++++++-------- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 819575e34..592b8227d 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1489,6 +1489,7 @@ const message = { }, license: { community: 'Community Edition: ', + community2: 'Community Edition', pro: 'Professional Edition: ', trial: 'Trial Edition', office: 'Official Edition', @@ -1514,6 +1515,7 @@ const message = { advice: 'Consultation', indefinitePeriod: 'Indefinite Period', levelUpPro: 'Upgrade to Professional Edition', + licenseSync: 'License Sync', knowMorePro: 'Learn More', closeAlert: 'The current page can be closed in the panel settings', introduce: 'Feature Introduction', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 218c88ced..7da4099bb 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1388,6 +1388,7 @@ const message = { }, license: { community: '社區版:', + community2: '社區版', pro: '專業版:', trial: '試用版', office: '正式版', @@ -1412,6 +1413,7 @@ const message = { advice: '諮詢', indefinitePeriod: '無限期', levelUpPro: '升級專業版', + licenseSync: '許可證同步', knowMorePro: '了解更多', closeAlert: '當前頁面可在面板設置中關閉顯示', introduce: '功能介紹', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 07f6d8bf9..ecbf8f0a1 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1389,6 +1389,7 @@ const message = { }, license: { community: '社区版:', + community2: '社区版', pro: '专业版:', trial: '试用版', office: '正式版', @@ -1413,6 +1414,7 @@ const message = { advice: '咨询', indefinitePeriod: '无限期', levelUpPro: '升级专业版', + licenseSync: '许可证同步', knowMorePro: '了解更多', closeAlert: '当前页面可在面板设置中关闭显示', introduce: '功能介绍', diff --git a/frontend/src/routers/index.ts b/frontend/src/routers/index.ts index 05620259c..6959fec84 100644 --- a/frontend/src/routers/index.ts +++ b/frontend/src/routers/index.ts @@ -13,7 +13,7 @@ router.beforeEach((to, from, next) => { if (to.name !== 'entrance' && !globalStore.isLogin) { next({ name: 'entrance', - params: { code: globalStore.entrance }, + params: to.params, }); NProgress.done(); return; diff --git a/frontend/src/views/login/index.vue b/frontend/src/views/login/index.vue index 3a9cbb97e..7bbc7e904 100644 --- a/frontend/src/views/login/index.vue +++ b/frontend/src/views/login/index.vue @@ -32,7 +32,7 @@ const screenWidth = ref(null); const getStatus = async () => { const res = await checkIsSafety(globalStore.entrance); if (res.data === 'unpass') { - router.replace({ name: 'entrance', params: { code: 0 } }); + router.replace({ name: 'entrance', params: { code: globalStore.entrance } }); } }; diff --git a/frontend/src/views/setting/license/index.vue b/frontend/src/views/setting/license/index.vue index 80fa259a8..3daebfa60 100644 --- a/frontend/src/views/setting/license/index.vue +++ b/frontend/src/views/setting/license/index.vue @@ -4,7 +4,7 @@