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 // host = ip:prot
const host = '192.168.2.166:3030'; const host = '192.168.2.166:3030';
const configs = { // Service Address 服务地址
// internationalization 国际化禁用,默认语言选择 sessionStorage.setItem(baseUrl, `http://${host}`);
i18nDisable: false, // websocket Address
i18nDisableDefault: 'en_US', sessionStorage.setItem(wsUrl, `ws://${host}`);
// 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]}`);
}
})(); })();