返回官网链接
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user