feat: support Last.fm scrobble

This commit is contained in:
qier222 2021-03-23 23:43:29 +08:00
parent cc50faeb09
commit 55585a921f
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
12 changed files with 300 additions and 25 deletions

View file

@ -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();
}