mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
implement system init.
This commit is contained in:
@ -12,7 +12,7 @@ export const state = () => ({
|
||||
id: '',
|
||||
clipboard: '',
|
||||
locked: false,
|
||||
|
||||
implicitHosting: true,
|
||||
keyboardModifierState: -1,
|
||||
})
|
||||
|
||||
@ -49,10 +49,15 @@ export const mutations = mutationTree(state, {
|
||||
state.locked = locked
|
||||
},
|
||||
|
||||
setImplicitHosting(state, val: boolean) {
|
||||
state.implicitHosting = val
|
||||
},
|
||||
|
||||
reset(state) {
|
||||
state.id = ''
|
||||
state.clipboard = ''
|
||||
state.locked = false
|
||||
state.implicitHosting = false
|
||||
state.keyboardModifierState = -1
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user