refactor: replace isLoading with isSuccess

This commit is contained in:
Tristan Yang
2022-12-14 16:47:01 +08:00
parent 50e839c001
commit 703ea8716c
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ function HomePage() {
guest: store.authData.guest
};
});
const { loading } = usePreload();
if (loading || !ready) {
const { success } = usePreload();
if (!success || !ready) {
return <Loading reload={true} fullscreen={true} />;
}
const isSettingPage = pathname.startsWith("/setting");