fix(talk): 兼容历史菜单链接(/talk/index 重定向到 /talk)
- 后端菜单链接历史上写过 pages/talk/index.html,前端会规范化为 /talk/index - 前端菜单有 localStorage 缓存,加此重定向兜住缓存里的旧链接,避免点进去 404
This commit is contained in:
1 parent
4deeae48a5
commit
b90bbab287
1 file changed
+3
@@ -204,6 +204,9 @@ export const staticRoutes: RouteRecordRaw[] = [
|
||||
component: () => import('@/views/talk/Talk.vue'),
|
||||
meta: { title: 'Talk', icon: 'ChatDotRound', requiresAuth: true, menuGuarded: true },
|
||||
},
|
||||
// 兼容历史菜单链接:MenuLink 曾写 pages/talk/index.html(规范化后为 /talk/index),
|
||||
// 现清单已改为 pages/talk.html(→ /talk);此重定向兜住浏览器缓存的旧菜单
|
||||
{ path: 'talk/index', redirect: '/talk' },
|
||||
// === Gitea 代码托管对接 ===
|
||||
{
|
||||
path: 'gitea/mine',
|
||||
|
||||
Reference in new issue
Block a user