mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: support Last.fm scrobble
This commit is contained in:
parent
cc50faeb09
commit
55585a921f
12 changed files with 300 additions and 25 deletions
|
|
@ -123,6 +123,11 @@ const routes = [
|
|||
name: "dailySongs",
|
||||
component: () => import("@/views/dailyTracks.vue"),
|
||||
},
|
||||
{
|
||||
path: "/lastfm/callback",
|
||||
name: "lastfmCallback",
|
||||
component: () => import("@/views/lastfmCallback.vue"),
|
||||
},
|
||||
];
|
||||
const router = new VueRouter({
|
||||
routes,
|
||||
|
|
@ -160,7 +165,7 @@ router.beforeEach((to, from, next) => {
|
|||
router.afterEach((to) => {
|
||||
if (
|
||||
to.matched.some((record) => !record.meta.keepAlive) &&
|
||||
!["settings", "dailySongs"].includes(to.name)
|
||||
!["settings", "dailySongs", "lastfmCallback"].includes(to.name)
|
||||
) {
|
||||
NProgress.start();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue