mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: support daily recommend songs
This commit is contained in:
parent
59397ed535
commit
3bbab6ba27
9 changed files with 320 additions and 5 deletions
|
|
@ -118,6 +118,11 @@ const routes = [
|
|||
name: "settings",
|
||||
component: () => import("@/views/settings.vue"),
|
||||
},
|
||||
{
|
||||
path: "/daily/songs",
|
||||
name: "dailySongs",
|
||||
component: () => import("@/views/dailyTracks.vue"),
|
||||
},
|
||||
];
|
||||
const router = new VueRouter({
|
||||
routes,
|
||||
|
|
@ -155,7 +160,7 @@ router.beforeEach((to, from, next) => {
|
|||
router.afterEach((to) => {
|
||||
if (
|
||||
to.matched.some((record) => !record.meta.keepAlive) &&
|
||||
!["settings"].includes(to.name)
|
||||
!["settings", "dailySongs"].includes(to.name)
|
||||
) {
|
||||
NProgress.start();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue