修改左侧导航栏, 添加歌单页面

This commit is contained in:
alger
2021-09-29 15:26:13 +08:00
parent 102c17db2f
commit e108059773
12 changed files with 648 additions and 62 deletions
+7 -5
View File
@@ -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;
}
}
}