fix: 修改兼容旧前端可改配置文件

This commit is contained in:
TsMask
2023-12-04 18:17:15 +08:00
parent b6d22014ce
commit a1443ebb95

View File

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