diff --git a/packages/app/src/pages/auth/index.mobile.jsx b/packages/app/src/pages/auth/index.mobile.jsx index 9ce2211e..3969df7e 100755 --- a/packages/app/src/pages/auth/index.mobile.jsx +++ b/packages/app/src/pages/auth/index.mobile.jsx @@ -5,28 +5,28 @@ import useRandomFeaturedWallpaperUrl from "@hooks/useRandomFeaturedWallpaperUrl" import "./index.mobile.less" export default (props) => { - const randomWallpaperURL = useRandomFeaturedWallpaperUrl() + const randomWallpaperURL = useRandomFeaturedWallpaperUrl() - React.useEffect(() => { - if (app.userData) { - app.navigation.goMain() - } else { - app.controls.openLoginForm({ - defaultLocked: true, - }) - } - }, []) + React.useEffect(() => { + if (app.userData) { + app.navigation.goMain() + } else { + app.auth.login() + } + }, []) - return
-
- {/*

+ return ( +

+
+ {/*

{wallpaperData?.author ? wallpaperData.author : null}

*/} -
-
-} \ No newline at end of file +
+
+ ) +}