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}`); })();