diff --git a/packages/base/src/App.tsx b/packages/base/src/App.tsx index 6b254d8ab..768694eed 100644 --- a/packages/base/src/App.tsx +++ b/packages/base/src/App.tsx @@ -58,12 +58,16 @@ function App() { /* IFTRUE_isEE */ const { syncWebTitleAndLogo } = useSystemConfig(); - useRequest(() => - dms.GetBasicInfo().then((res) => { - const basicInfoRes = res.data.data; - - if (basicInfoRes) syncWebTitleAndLogo(basicInfoRes); - }) + useRequest( + () => + dms.GetBasicInfo().then((res) => { + const basicInfoRes = res.data.data; + + if (basicInfoRes) syncWebTitleAndLogo(basicInfoRes); + }), + { + ready: !!token + } ); /* FITRUE_isEE */