mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
major refactors
This commit is contained in:
@@ -12,6 +12,7 @@ import SettingsView from "../views/SettingsView.vue";
|
||||
|
||||
import usePStore from "../stores/playlists";
|
||||
import usePTrackStore from "../stores/p.ptracks";
|
||||
import useFStore from "../stores/folder";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -23,6 +24,10 @@ const routes = [
|
||||
path: "/folder/:path",
|
||||
name: "FolderView",
|
||||
component: FolderView,
|
||||
beforeEnter: async (to) => {
|
||||
console.log("beforeEnter")
|
||||
await useFStore().fetchAll(to.params.path);
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/folder/",
|
||||
|
||||
Reference in New Issue
Block a user