fix: 修复请求时序性问题

确保在请求前端配置之后(即尝试通过配置文件修改地址之后)再发起请求
pull/49/head
moonrailgun 3 years ago
parent c8340f3047
commit 7d90a1160e

@ -104,12 +104,14 @@ request
setServiceUrl(() => _get(config, 'serviceUrl')); setServiceUrl(() => _get(config, 'serviceUrl'));
} }
}) })
.catch(() => {}); .catch(() => {})
.finally(() => {
/** /**
* *
* ()
*/ */
fetchGlobalConfig().catch((e) => { fetchGlobalConfig().catch((e) => {
showErrorToasts(t('全局配置加载失败')); showErrorToasts(t('全局配置加载失败'));
console.error('全局配置加载失败', e); console.error('全局配置加载失败', e);
}); });
});

Loading…
Cancel
Save