Skip to content

Commit 9c84ac2

Browse files
committed
feat: go to the default project page
1 parent af9d017 commit 9c84ac2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/layout/UserWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { message } from 'antd';
2323
import { inject, observer } from 'mobx-react';
2424
import React, { useContext, useEffect, useState } from 'react';
2525
import { PageLoadingContext } from './PageLoadingWrapper';
26+
import { toDefaultProjectPage } from '@/service/projectHistory';
2627
interface IProps {
2728
userStore: UserStore;
2829
settingStore: SettingStore;
@@ -82,7 +83,7 @@ const UserWrapper: React.FC<IProps> = function ({ children, userStore, settingSt
8283
/**
8384
* 处于login页面并且已经登录,需要跳到对应的页面上
8485
*/
85-
history.replace('/project');
86+
await toDefaultProjectPage();
8687
}
8788
setStatus(STATUS_TYPE.DONE);
8889
}

0 commit comments

Comments
 (0)