功能修订
This commit is contained in:
+15
-6
@@ -6,7 +6,8 @@ import type { RouteRecordRaw } from "vue-router";
|
||||
* - /list/new?serid= (编辑)
|
||||
* - /list/new?fid= (转发)
|
||||
* - /list/new?tempid=(模板引用)
|
||||
* - /details?serid=&type= type: 0=编辑视角(不标读) 1=普通查看(标读)
|
||||
* - /list/detail?serid=&type=、/noticelist/detail?serid=&type=
|
||||
* type: 0=编辑视角(不标读) 1=普通查看(标读)
|
||||
*
|
||||
* modId 是菜单 ↔ 路由的稳定契约(对照后端 GetUserMod 现行数据):
|
||||
* 1=已收到 2=已发送 3=全部通知 4=通知统计 21=应用设置
|
||||
@@ -43,12 +44,19 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import("@/views/notice/NoticeList.vue"),
|
||||
meta: { title: "全部通知", modId: 3 },
|
||||
},
|
||||
// 通知详情(已发/已收共用,type 区分是否标读)
|
||||
// 通知详情(同一组件挂两个路由,面包屑/菜单高亮由 meta.parentId 确定父节点:
|
||||
// 已发送下 /list/detail,全部通知下 /noticelist/detail;type 区分是否标读)
|
||||
{
|
||||
path: "/details",
|
||||
name: "notice_details",
|
||||
path: "/list/detail",
|
||||
name: "notice_list_detail",
|
||||
component: () => import("@/views/notice/NoticeDetails.vue"),
|
||||
meta: { title: "通知详情", modId: 5 },
|
||||
meta: { title: "通知详情", modId: 23, parentId: 2 },
|
||||
},
|
||||
{
|
||||
path: "/noticelist/detail",
|
||||
name: "notice_manage_detail",
|
||||
component: () => import("@/views/notice/NoticeDetails.vue"),
|
||||
meta: { title: "通知详情", modId: 24, parentId: 3 },
|
||||
},
|
||||
// 通知统计(旧版行为:整页跳转外部统计系统)
|
||||
{
|
||||
@@ -67,6 +75,7 @@ const routes: RouteRecordRaw[] = [
|
||||
|
||||
/* ---- 旧版路径兼容重定向(书签、残留的平台模块配置) ---- */
|
||||
{ path: "/accept", redirect: "/" },
|
||||
{ path: "/details", redirect: "/list/detail" },
|
||||
{ path: "/newnotice", redirect: "/list/new" },
|
||||
{ path: "/edit", redirect: "/list/new" },
|
||||
{ path: "/manage", redirect: "/noticelist" },
|
||||
@@ -76,7 +85,7 @@ const routes: RouteRecordRaw[] = [
|
||||
{ path: "/notice/notice_accept", redirect: "/accept" },
|
||||
{ path: "/notice/notice_list", redirect: "/list" },
|
||||
{ path: "/notice/manage", redirect: "/noticelist" },
|
||||
{ path: "/notice/notice_details", redirect: "/details" },
|
||||
{ path: "/notice/notice_details", redirect: "/list/detail" },
|
||||
{ path: "/notice/statistics", redirect: "/stats" },
|
||||
{ path: "/notice/setting", redirect: "/setting" },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user