diff --git a/src/views/dashboard/modules/header-banner.vue b/src/views/dashboard/modules/header-banner.vue index 2b9e6b4..4331a95 100644 --- a/src/views/dashboard/modules/header-banner.vue +++ b/src/views/dashboard/modules/header-banner.vue @@ -10,7 +10,22 @@ import { import { computed, ref, onMounted } from 'vue'; import { getDashboardOverview } from '@/service/api/auth'; import { useI18n } from 'vue-i18n'; +import { useRouter } from 'vue-router'; const { t } = useI18n(); +const router = useRouter(); +//AP跳转 +const handleApClick = () => { + router.push('/device/apdevice'); +}; +//用户跳转 +const handleUserClick = () =>{ + router.push('/user-center/user') +}; +//终端跳转 +const handleterminalClick = () => { + router.push('/device/terminal'); +}; + defineOptions({ name: 'HeaderBanner' @@ -200,8 +215,8 @@ const otherDevices = computed(() => ({