mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
修改左侧导航栏, 添加歌单页面
This commit is contained in:
@@ -9,9 +9,12 @@
|
||||
<search-bar />
|
||||
<!-- 主页面路由 -->
|
||||
<n-layout class="main-content bg-black" :native-scrollbar="false">
|
||||
<keep-alive>
|
||||
<router-view class="main-page"></router-view>
|
||||
</keep-alive>
|
||||
<router-view class="main-page" v-slot="{ Component }">
|
||||
<keep-alive>
|
||||
<component :is="Component" v-if="$route.meta.keepAlive" />
|
||||
</keep-alive>
|
||||
<component :is="Component" v-if="!$route.meta.keepAlive" />
|
||||
</router-view>
|
||||
</n-layout>
|
||||
</div>
|
||||
</div>
|
||||
@@ -57,8 +60,7 @@ const menus = store.state.menus;
|
||||
height: 834px;
|
||||
}
|
||||
&-page {
|
||||
padding: 20px 0;
|
||||
padding-bottom: 80px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user