| | |
| | | <div class="navbar"> |
| | | <div class="left-side"> |
| | | <a-space> |
| | | <img class="logo" alt="logo" src="@/assets/images/icon-logo.png" /> |
| | | <img class="logo" alt="logo" src="@/assets/images/icon-logo1.png" /> |
| | | <a-typography-title |
| | | :style="{ margin: 0, fontSize: '18px' }" |
| | | :heading="5" |
| | |
| | | </li> |
| | | <li> |
| | | <a-dropdown trigger="click"> |
| | | <a-avatar |
| | | <!-- <a-avatar |
| | | :size="32" |
| | | :style="{ marginRight: '8px', cursor: 'pointer' }" |
| | | > |
| | | <img alt="avatar" :src="avatar" /> |
| | | </a-avatar> |
| | | </a-avatar> --> |
| | | <template #content> |
| | | <!-- <a-doption> |
| | | <a-space @click="switchRoles"> |
| | |
| | | </template> |
| | | </a-dropdown> |
| | | </li> |
| | | <li style="padding: 0"> {{ name }} </li> |
| | | <li style="padding: 0"> |
| | | <a-dropdown trigger="click" @select="changeLocale as any"> |
| | | <div> {{ name }}</div> |
| | | <template #content> |
| | | <a-doption> |
| | | <a-space @click="handleLogout"> |
| | | <icon-export /> |
| | | <span> |
| | | {{ $t('messageBox.logout') }} |
| | | </span> |
| | | </a-space> |
| | | </a-doption> |
| | | </template> |
| | | </a-dropdown> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </template> |
| | |
| | | import useUser from '@/hooks/user'; |
| | | import Menu from '@/components/menu/index.vue'; |
| | | import MessageBox from '../message-box/index.vue'; |
| | | import login from '@/assets/images/icon-logo.png'; |
| | | import login from '@/assets/images/icon-logo1.png'; |
| | | import { getUserInfo } from '@/utils/auth'; |
| | | |
| | | const appStore = useAppStore(); |