From 794df442e2e41425325cd073fd471ee74c8031b9 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Thu, 3 Apr 2025 13:57:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E6=88=91=E7=9A=84?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E8=B7=AF=E7=94=B1=E8=B7=AF=E5=BE=84=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NoticeDropdown/index.vue | 2 +- src/router/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NoticeDropdown/index.vue b/src/components/NoticeDropdown/index.vue index 8b172959..dcf4b93c 100644 --- a/src/components/NoticeDropdown/index.vue +++ b/src/components/NoticeDropdown/index.vue @@ -149,7 +149,7 @@ function handleReadNotice(id: string) { // 查看更多 function handleViewMoreNotice() { - router.push({ path: "/myNotice" }); + router.push({ name: "MyNotice" }); } // 全部已读 diff --git a/src/router/index.ts b/src/router/index.ts index 37c39b23..57058ee4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -59,7 +59,7 @@ export const constantRoutes: RouteRecordRaw[] = [ meta: { title: "个人中心", icon: "user", hidden: true }, }, { - path: "myNotice", + path: "my-notice", name: "MyNotice", component: () => import("@/views/system/notice/components/MyNotice.vue"), meta: { title: "我的通知", icon: "user", hidden: true },