️ 优化咨讯页版块跳转,记忆当前类型

This commit is contained in:
目棃
2024-02-24 16:18:13 +08:00
parent bf66b4eee0
commit c9fbddcf5d
4 changed files with 70 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
/**
* @file router/modules/main.ts
* @description 主路由模块
* @since Beta v0.3.7
* @since Beta v0.4.4
*/
const mainRoutes = [
@@ -16,7 +16,7 @@ const mainRoutes = [
component: async () => await import("../../pages/common/Announcements.vue"),
},
{
path: "/news/:gid",
path: "/news/:gid/:type?",
name: "咨讯",
component: async () => await import("../../pages/common/News.vue"),
},