From 9003c36ec7ff034ab7dfdad154e5666ff450926a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 08 四月 2024 17:43:48 +0800 Subject: [PATCH] 2024-04-08 --- src/index.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/index.js b/src/index.js index 378e09d..2b532b4 100644 --- a/src/index.js +++ b/src/index.js @@ -246,6 +246,11 @@ sessionStorage.setItem('system_mark', _mark) } + if (config.mainkey && GLOB.sysType !== 'cloud' && config.mainkey !== options.cakey) { + GLOB.localkey = GLOB.appkey + GLOB.appkey = config.mainkey + } + let lang = localStorage.getItem(_href + 'lang') || (config.defaultLang !== 'en-US' ? 'zh-CN' : 'en-US') sessionStorage.setItem('lang', lang) -- Gitblit v1.8.0