Skip to content

Commit

Permalink
Merge pull request #13 from actiontech/chore/fix-getBasicInfo
Browse files Browse the repository at this point in the history
[fix]: add ready for getBasicInfo
  • Loading branch information
LZS911 authored Oct 20, 2023
2 parents a8c9f39 + 1e7d3da commit d2b1c71
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/base/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit d2b1c71

Please sign in to comment.