diff --git a/src/components/layout/AppHeader.vue b/src/components/layout/AppHeader.vue index 14b0a43..73581c0 100644 --- a/src/components/layout/AppHeader.vue +++ b/src/components/layout/AppHeader.vue @@ -62,6 +62,12 @@ 个人中心 + + + + + 返回官网 + @@ -80,11 +86,11 @@ import { useAppStore } from '@/stores/app' import { useUserStore } from '@/stores/user' import { - ChevronDownIcon as ArrowDown, - BellIcon as Bell, - Bars3Icon as Menu, - ArrowRightOnRectangleIcon as Switch, - UserIcon as User + ChevronDownIcon as ArrowDown, + HomeIcon as Home, + Bars3Icon as Menu, + ArrowRightOnRectangleIcon as Switch, + UserIcon as User } from '@heroicons/vue/24/outline' const props = defineProps({ diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 1c337d3..55c5307 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -138,6 +138,9 @@ const shouldShowCertificationNotice = computed(() => { // 处理用户菜单命令 const handleUserCommand = async (command) => { switch (command) { + case 'home': + window.open('https://www.tianyuanapi.com/', '_blank', 'noopener') + break case 'profile': router.push('/profile') break