新项目, antd6, react19

This commit is contained in:
zhengw
2026-01-05 17:06:16 +08:00
commit fcb43c0cbd
84 changed files with 6939 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Button, Popconfirm } from 'antd';
import { useUserStore } from '@/store/UserStore';
import { GapBox } from '../GapBox';
export const HeaderUserInfo: React.FC = () => {
const userInfo = useUserStore().user;
return (
<GapBox>
<div>{userInfo.login_name}</div>
<Popconfirm
title='确定要退出登录吗?'
onConfirm={() => {
location.hash = '#/login';
}}
>
<Button size='small' variant='text' color='primary'>
退
</Button>
</Popconfirm>
</GapBox>
);
};