fix(sj_1.0.0_beta4): 修复登录失效不弹提示框问题

This commit is contained in:
xlsea 2024-06-07 10:21:44 +08:00
parent 0dbe824829
commit 734d5bf97d

View File

@ -8,7 +8,7 @@ export function createServiceConfig(env: Env.ImportMeta) {
let other = {} as Record<App.Service.OtherBaseURLKey, string>;
try {
other = JSON.parse(VITE_OTHER_SERVICE_BASE_URL);
other = VITE_OTHER_SERVICE_BASE_URL ? JSON.parse(VITE_OTHER_SERVICE_BASE_URL) : {};
} catch (error) {
// eslint-disable-next-line no-console
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid JSON string');