fix: 修改兼容旧前端可改配置文件
This commit is contained in:
@@ -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}`);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user