| | |
| | | import { useAccessStore, useUserStore } from '../packages/stores/src'; |
| | | import { formatDateTime, openWindow } from '../packages/utils/src'; |
| | | |
| | | import { message, Tooltip } from 'ant-design-vue'; |
| | | import { message } from 'ant-design-vue'; |
| | | |
| | | import { |
| | | getUnreadNotifyMessageCount, |
| | |
| | | icon: AntdProfileOutlined, |
| | | text: $t('ui.widgets.profile'), |
| | | }, |
| | | { |
| | | handler: () => { |
| | | openWindow(VBEN_DOC_URL, { |
| | | target: '_blank', |
| | | }); |
| | | }, |
| | | icon: BookOpenText, |
| | | text: $t('ui.widgets.document'), |
| | | }, |
| | | { |
| | | handler: () => { |
| | | openWindow(VBEN_GITHUB_URL, { |
| | | target: '_blank', |
| | | }); |
| | | }, |
| | | icon: SvgGithubIcon, |
| | | text: 'GitHub', |
| | | }, |
| | | { |
| | | handler: () => { |
| | | helpModalApi.open(); |
| | | }, |
| | | icon: CircleHelp, |
| | | text: $t('ui.widgets.qa'), |
| | | }, |
| | | // { |
| | | // handler: () => { |
| | | // openWindow(VBEN_DOC_URL, { |
| | | // target: '_blank', |
| | | // }); |
| | | // }, |
| | | // icon: BookOpenText, |
| | | // text: $t('ui.widgets.document'), |
| | | // }, |
| | | // { |
| | | // handler: () => { |
| | | // openWindow(VBEN_GITHUB_URL, { |
| | | // target: '_blank', |
| | | // }); |
| | | // }, |
| | | // icon: SvgGithubIcon, |
| | | // text: 'GitHub', |
| | | // }, |
| | | // { |
| | | // handler: () => { |
| | | // helpModalApi.open(); |
| | | // }, |
| | | // icon: CircleHelp, |
| | | // text: $t('ui.widgets.qa'), |
| | | // }, |
| | | ]); |
| | | |
| | | const avatar = computed(() => { |
| | |
| | | } |
| | | handleNotificationGetList(); |
| | | handleNotificationGetUnreadCount(); |
| | | } |
| | | |
| | | /** 打开 IM 聊天 */ |
| | | function handleOpenImHome() { |
| | | const { href } = router.resolve({ name: 'ImHome' }); |
| | | window.open(href, '_blank'); |
| | | } |
| | | |
| | | // 租户列表 |
| | |
| | | @on-click="handleClick" |
| | | /> |
| | | </template> |
| | | <template #header-right-1> |
| | | <!-- <template #header-right-1> |
| | | <div v-if="tenantEnable"> |
| | | <TenantDropdown |
| | | class="mr-2" |
| | |
| | | @success="handleTenantChange" |
| | | /> |
| | | </div> |
| | | </template> |
| | | <template #header-right-900> |
| | | <Tooltip title="IM 聊天"> |
| | | <button |
| | | class="hover:bg-accent hover:text-accent-foreground mr-1 inline-flex size-8 items-center justify-center rounded-md transition-colors" |
| | | type="button" |
| | | @click="handleOpenImHome" |
| | | > |
| | | <IconifyIcon class="size-4" icon="lucide:message-circle" /> |
| | | </button> |
| | | </Tooltip> |
| | | </template> |
| | | </template> --> |
| | | <template #extra> |
| | | <AuthenticationLoginExpiredModal |
| | | v-model:open="accessStore.loginExpired" |