From a1443ebb95b1265dab4698a07f11222184361565 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 4 Dec 2023 18:17:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=97=A7=E5=89=8D=E7=AB=AF=E5=8F=AF=E6=94=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/default/config.js | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/public/default/config.js b/public/default/config.js index ff149cba..7a8fdd1e 100644 --- a/public/default/config.js +++ b/public/default/config.js @@ -20,22 +20,8 @@ // host = ip:prot const host = '192.168.2.166:3030'; - const configs = { - // internationalization 国际化禁用,默认语言选择 - i18nDisable: false, - i18nDisableDefault: 'en_US', - // Service Address 服务地址 - baseUrl: `http://${host}`, - // websocket Address - wsUrl: `ws://${host}`, - }; - - if(!configs.i18nDisable){ - localStorage.setItem('cache:local:i18n', configs.i18nDisableDefault); - } - for (const key in configs) { - console.log(key, `${configs[key]}`); - sessionStorage.setItem(key, `${configs[key]}`); - } - + // Service Address 服务地址 + sessionStorage.setItem(baseUrl, `http://${host}`); + // websocket Address + sessionStorage.setItem(wsUrl, `ws://${host}`); })();