mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 21:48:14 +00:00
feature: local storage
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user