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