mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 01:59:20 +08:00
fix: 修复navigateTo导入错误,使用vue-router替代
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import type { NotificationItem } from '@vben/layouts';
|
||||
|
||||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
|
||||
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
|
||||
@@ -16,7 +17,7 @@ import {
|
||||
} from '@vben/layouts';
|
||||
import { preferences } from '@vben/preferences';
|
||||
import { useAccessStore, useUserStore } from '@vben/stores';
|
||||
import { openWindow, navigateTo } from '@vben/utils';
|
||||
import { openWindow } from '@vben/utils';
|
||||
|
||||
import ImportTaskButton from '#/components/ImportTaskButton.vue';
|
||||
import SwitchAccountModal from '#/components/SwitchAccountModal.vue';
|
||||
@@ -24,9 +25,9 @@ import { $t } from '#/locales';
|
||||
import { useAuthStore, useImportTaskStore } from '#/store';
|
||||
import LoginForm from '#/views/_core/authentication/login.vue';
|
||||
|
||||
const notifications = ref<NotificationItem[]>([
|
||||
{
|
||||
avatar: 'https://avatar.vercel.sh/vercel.svg?text=VB',
|
||||
const router = useRouter();
|
||||
|
||||
// 通知数据
|
||||
date: '3小时前',
|
||||
isRead: true,
|
||||
message: '描述信息描述信息描述信息',
|
||||
@@ -83,7 +84,7 @@ const menus = computed(() => {
|
||||
// 个人信息
|
||||
menuItems.push({
|
||||
handler: () => {
|
||||
navigateTo('/system/profile');
|
||||
router.push('/system/profile');
|
||||
},
|
||||
icon: UserIcon,
|
||||
text: '个人信息',
|
||||
|
||||
Reference in New Issue
Block a user