| | |
| | | <img alt="avatar" :src="avatar" /> |
| | | </a-avatar> |
| | | <template #content> |
| | | <a-doption> |
| | | <!-- <a-doption> |
| | | <a-space @click="switchRoles"> |
| | | <icon-tag /> |
| | | <span> |
| | |
| | | {{ $t('messageBox.userSettings') }} |
| | | </span> |
| | | </a-space> |
| | | </a-doption> |
| | | </a-doption> --> |
| | | <a-doption> |
| | | <a-space @click="handleLogout"> |
| | | <icon-export /> |
| | |
| | | </template> |
| | | </a-dropdown> |
| | | </li> |
| | | <li style="padding: 0"> {{ name }} </li> |
| | | </ul> |
| | | </div> |
| | | </template> |
| | |
| | | import Menu from '@/components/menu/index.vue'; |
| | | import MessageBox from '../message-box/index.vue'; |
| | | import login from '@/assets/images/icon-logo.png'; |
| | | import { getUserInfo } from '@/utils/auth'; |
| | | |
| | | const appStore = useAppStore(); |
| | | const userStore = useUserStore(); |
| | |
| | | const { isFullscreen, toggle: toggleFullScreen } = useFullscreen(); |
| | | const locales = [...LOCALE_OPTIONS]; |
| | | const avatar = login; |
| | | const name = JSON.parse(getUserInfo()).name || ''; |
| | | //const avatar = computed(() => { |
| | | // return userStore.avatar; |
| | | //}); |