Skip to content

Commit 9896601

Browse files
committed
fix: respect landingpage settings (use settings/server store, not localStore)
1 parent 845b12f commit 9896601

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/route.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import Vue from 'vue';
22
import VueRouter from 'vue-router';
33

4+
import { useSettingsStore } from '@/store/settings';
5+
46
const Home = () => import('./views/Home.vue');
57

68
// Activity views for desktop
@@ -30,7 +32,8 @@ const router = new VueRouter({
3032
{
3133
path: '/',
3234
redirect: _to => {
33-
return localStorage.landingpage || '/home';
35+
const settings = useSettingsStore();
36+
return settings.landingpage || '/home';
3437
},
3538
},
3639
{ path: '/home', component: Home },

0 commit comments

Comments
 (0)