mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
reserve entered paths on navigating back
- retain the list of entered folders on going up the directory tree. 😹
This commit is contained in:
@@ -43,15 +43,15 @@ function useSubRoutes() {
|
||||
(newRoute: string) => {
|
||||
switch (newRoute) {
|
||||
case Routes.folder:
|
||||
console.log(newRoute);
|
||||
subPaths.value = createSubPaths(route.params.path);
|
||||
let oldpath = "";
|
||||
[oldpath, subPaths.value] = createSubPaths(route.params.path, oldpath);
|
||||
|
||||
watch(
|
||||
() => route.params.path,
|
||||
(newPath) => {
|
||||
if (newPath == undefined) return;
|
||||
|
||||
subPaths.value = createSubPaths(newPath);
|
||||
[oldpath, subPaths.value] = createSubPaths(newPath, oldpath);
|
||||
}
|
||||
);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user