返回官网链接
This commit is contained in:
@@ -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 />
|
||||||
@@ -80,11 +86,11 @@
|
|||||||
import { useAppStore } from '@/stores/app'
|
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
|
||||||
} from '@heroicons/vue/24/outline'
|
} from '@heroicons/vue/24/outline'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user