Skip to content

Commit

Permalink
feat(router): 更新路由配置
Browse files Browse the repository at this point in the history
- 为云盘页面添加 keepAlive 属性,优化性能
- 移除未使用的 Sponsors 和 Song 页面路由
- 调整 lyric 页面路由的位置,使其更合理
  • Loading branch information
GSQZ committed Feb 8, 2025
1 parent 407366e commit 0bdacef
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const routes = [
name: "cloud",
meta: {
title: "我的云盘",
needLogin: true,
keepAlive: true,
},
component: () => import("@/views/Cloud.vue"),
},
Expand Down Expand Up @@ -285,16 +285,7 @@ const routes = [
},
component: () => import("@/views/Dj/index.vue"),
},
// 赞助者
{
path: "/Sponsors",
name: "Sponsors",
meta: {
title: "赞赏列表",
},
component: () => import("@/views/Sponsors/index.vue"),
},
// 首页
// 桌面歌词
{
path: "/lyric",
name: "lyric",
Expand All @@ -321,15 +312,6 @@ const routes = [
},
component: () => import("@/views/Setting/index.vue"),
},
// 单曲页面
{
path: "/song",
name: "song",
meta: {
title: "全局设置",
},
component: () => import("@/views/Song.vue"),
},
// 测试页面
{
path: "/test",
Expand Down

0 comments on commit 0bdacef

Please sign in to comment.