Skip to content

Commit

Permalink
fix: oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Mar 4, 2024
1 parent fa8c5dc commit b50517e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/app/src/pages/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ const Login = () => {

/* default login type */
useEffect(() => {
if (!feConfigs.oauth) return;
setPageType(
feConfigs.oauth?.wechat ? LoginPageTypeEnum.wechat : LoginPageTypeEnum.passwordLogin
feConfigs?.oauth?.wechat ? LoginPageTypeEnum.wechat : LoginPageTypeEnum.passwordLogin
);
}, [feConfigs.oauth, feConfigs.oauth?.wechat]);
}, [feConfigs.oauth]);
useEffect(() => {
clearToken();
router.prefetch('/app/list');
Expand Down

0 comments on commit b50517e

Please sign in to comment.