Skip to content

Commit 5425288

Browse files
committed
feat: 设置页面重构
1 parent ae8f369 commit 5425288

7 files changed

Lines changed: 525 additions & 434 deletions

File tree

src/components/Player/BigPlayer.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
class="setting"
2020
size="30"
2121
:component="SettingsRound"
22-
@click="router.push('/setting/player')"
22+
@click="
23+
() => {
24+
music.setBigPlayerState(false);
25+
router.push('/setting/player');
26+
}
27+
"
2328
/>
2429
</div>
2530
</div>

src/router/routes.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,25 @@ const routes = [
125125
meta: {
126126
title: "全局设置",
127127
},
128-
component: () => import("@/views/Setting/SettingView.vue"),
128+
component: () => import("@/views/Setting/index.vue"),
129+
redirect: "/setting/main",
130+
children: [
131+
{
132+
path: "main",
133+
name: "setting-main",
134+
component: () => import("@/views/Setting/main.vue"),
135+
},
136+
{
137+
path: "player",
138+
name: "setting-player",
139+
component: () => import("@/views/Setting/player.vue"),
140+
},
141+
{
142+
path: "other",
143+
name: "setting-other",
144+
component: () => import("@/views/Setting/other.vue"),
145+
},
146+
],
129147
},
130148
// 登录页
131149
{

0 commit comments

Comments
 (0)