Working hardly

This commit is contained in:
2021-08-17 15:32:55 +02:00
parent e8484f98d5
commit adb052d1de
33 changed files with 988 additions and 767 deletions

View File

@@ -1,15 +1,18 @@
import {GetterTree, MutationTree} from "vuex";
export const state = () => ({
opened: false
opened: false,
route: '/'
})
export type RootState = ReturnType<typeof state>
export const getters: GetterTree<RootState, RootState> = {
opened: state => state.opened,
route: state => state.route
}
export const mutations: MutationTree<RootState> = {
TOGGLE_OPENED: (state, opened: boolean) => (state.opened = opened),
SET_ROUTE: (state, route: string) => (state.route = route)
}