feature: local storage

This commit is contained in:
2023-01-31 17:33:56 +01:00
parent 2cb8b1dc15
commit 34759735d1
4 changed files with 39 additions and 3 deletions
+4
View File
@@ -13,6 +13,7 @@ import { RouterView } from 'vue-router';
import { IUser, AuthState } from './types/types';
import useRouteGuard from './mixins/useRouteGuard';
import { useStore } from './store';
import useLocalStorage from './mixins/useLocalStorage';
export default defineComponent({
mixins: [dataMixin],
@@ -20,7 +21,10 @@ export default defineComponent({
setup() {
const { routeAuthGuard } = useRouteGuard();
const { setupStorage } = useLocalStorage();
routeAuthGuard();
setupStorage();
return {
store: useStore(),