| | |
| | | # 应用标题 |
| | | VITE_APP_TITLE=芋道管理系统 |
| | | VITE_APP_TITLE=工厂数字化MOM系统 |
| | | |
| | | # 应用命名空间,用于缓存、store等功能的前缀,确保隔离 |
| | | VITE_APP_NAMESPACE=yudao-vben-antd |
| | |
| | | <project version="4"> |
| | | <component name="VcsDirectoryMappings"> |
| | | <mapping directory="" vcs="Git" /> |
| | | <mapping directory="$PROJECT_DIR$/yudao-ui-admin-vben" vcs="Git" /> |
| | | </component> |
| | | </project> |
| | |
| | | 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'); |
| | | } |
| | | |
| | | // 租户列表 |
| | |
| | | @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 #extra> |
| | | <AuthenticationLoginExpiredModal |
| | |
| | | colorPrimary: 'hsl(212 100% 45%)', |
| | | colorSuccess: 'hsl(144 57% 58%)', |
| | | colorWarning: 'hsl(42 84% 61%)', |
| | | mode: 'dark', |
| | | radius: '0.5', |
| | | mode: 'light', |
| | | radius: '0.75', |
| | | fontSize: 16, |
| | | semiDarkHeader: false, |
| | | semiDarkSidebar: false, |