We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845b12f commit 9896601Copy full SHA for 9896601
src/route.js
@@ -1,6 +1,8 @@
1
import Vue from 'vue';
2
import VueRouter from 'vue-router';
3
4
+import { useSettingsStore } from '@/store/settings';
5
+
6
const Home = () => import('./views/Home.vue');
7
8
// Activity views for desktop
@@ -30,7 +32,8 @@ const router = new VueRouter({
30
32
{
31
33
path: '/',
34
redirect: _to => {
- return localStorage.landingpage || '/home';
35
+ const settings = useSettingsStore();
36
+ return settings.landingpage || '/home';
37
},
38
39
{ path: '/home', component: Home },
0 commit comments