返回官网链接

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-icon>
个人中心 个人中心
</el-dropdown-item> </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-dropdown-item divided command="logout">
<el-icon class="dropdown-item-icon"> <el-icon class="dropdown-item-icon">
<Switch /> <Switch />
@@ -81,7 +87,7 @@ import { useAppStore } from '@/stores/app'
import { useUserStore } from '@/stores/user' import { useUserStore } from '@/stores/user'
import { import {
ChevronDownIcon as ArrowDown, ChevronDownIcon as ArrowDown,
BellIcon as Bell, HomeIcon as Home,
Bars3Icon as Menu, Bars3Icon as Menu,
ArrowRightOnRectangleIcon as Switch, ArrowRightOnRectangleIcon as Switch,
UserIcon as User UserIcon as User

View File

@@ -138,6 +138,9 @@ const shouldShowCertificationNotice = computed(() => {
// 处理用户菜单命令 // 处理用户菜单命令
const handleUserCommand = async (command) => { const handleUserCommand = async (command) => {
switch (command) { switch (command) {
case 'home':
window.open('https://www.tianyuanapi.com/', '_blank', 'noopener')
break
case 'profile': case 'profile':
router.push('/profile') router.push('/profile')
break break