From 18dcf18fb79d001bbfc72e293c05948a862d332a Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 20 Apr 2026 17:18:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=AD=E6=96=87=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BB=8Ezh=E6=94=B9=E4=B8=BAcn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/router-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/router-config.ts b/src/router/router-config.ts index 11d1714..af1ccc8 100644 --- a/src/router/router-config.ts +++ b/src/router/router-config.ts @@ -3,10 +3,10 @@ import router from './index' router.beforeEach((to, from, next) => { const path = to.path const list = { - zh: 'CHINESE_SIMPLIFIED', + cn: 'CHINESE_SIMPLIFIED', en: 'ENGLISH' } - if (path.startsWith('/zh') || (to.params.lang === 'zh')) { + if (path.startsWith('/cn') || (to.params.lang === 'cn')) { localStorage.setItem('loginLanguage', 'CHINESE_SIMPLIFIED') } else if (path.startsWith('/en') || (to.params.lang === 'en')) { localStorage.setItem('loginLanguage', 'ENGLISH')