Skip to content

Commit

Permalink
🐞 fix:补上我丢失的退出登陆
Browse files Browse the repository at this point in the history
  • Loading branch information
eleliauk committed Aug 31, 2024
1 parent c24d9d5 commit 781d792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/modules/profile/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Header: React.FC = memo(() => {
};
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return (title: string) => titleMap[title] || title;
// todo 刷新方式
}, []);

useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/editUser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ const EditUser: React.FC = () => {
<Button className="save-button" onClick={handleSave}>
保存
</Button>
<Button className="logout-button" onClick={handleLogout}>
退出登陆
</Button>
</View>
<Button className="mt-7 h-1/6 w-1/3" onClick={handleLogout}>
退出登陆
</Button>
</View>
);
};
Expand Down

0 comments on commit 781d792

Please sign in to comment.