mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-20 23:11:43 +01:00
Upgrade dependencies
This commit is contained in:
@@ -3,7 +3,6 @@ import {GetterTree, MutationTree} from "vuex";
|
||||
export const state = () => ({
|
||||
opened: false,
|
||||
route: '/',
|
||||
email: ''
|
||||
})
|
||||
|
||||
export type RootState = ReturnType<typeof state>
|
||||
@@ -11,11 +10,9 @@ export type RootState = ReturnType<typeof state>
|
||||
export const getters: GetterTree<RootState, RootState> = {
|
||||
opened: state => state.opened,
|
||||
route: state => state.route,
|
||||
email: state => state.email
|
||||
}
|
||||
|
||||
export const mutations: MutationTree<RootState> = {
|
||||
TOGGLE_OPENED: (state, opened: boolean) => (state.opened = opened),
|
||||
SET_ROUTE: (state, route: string) => (state.route = route),
|
||||
SET_EMAIL: (state, email: string) => (state.email = email)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user