返回官网链接

This commit is contained in:
2025-12-12 18:09:14 +08:00
parent 3d2b60f4ff
commit 711994905d
2 changed files with 14 additions and 5 deletions

View File

@@ -62,6 +62,12 @@
</el-icon>
个人中心
</el-dropdown-item>
<el-dropdown-item command="home">
<el-icon class="dropdown-item-icon">
<Home />
</el-icon>
返回官网
</el-dropdown-item>
<el-dropdown-item divided command="logout">
<el-icon class="dropdown-item-icon">
<Switch />
@@ -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({

View File

@@ -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