import useRouterStore from '@/useRouterStore' import { Button, Modal, Tag } from 'ant-design-vue' import { defineComponent } from 'vue' import AvatarCircle from './AvatarCircle' import useUserStore from './useUserStore' import { EditOutlined, LoginOutlined, LogoutOutlined } from '@ant-design/icons-vue' import { globalToast } from '@/main' import clsx from 'clsx' import useLayoutStore from '@/layout/useLayoutStore' const labelStyle = 'w-16' export default defineComponent(() => { const router = useRouterStore() const layout = useLayoutStore() const user = useUserStore() return () => (
{user.isLogin && (
用户名:
{user.profile.username}
生日:
{user.profile.birthday}
性别:
{user.profile.gender === 1 ? '男' : user.profile.gender === 2 ? '女' : '未知'}
) }
{user.isLogin ? ( <> ) : ( )}
) })