feat: add tag management feature
This commit is contained in:
parent
e284266b91
commit
e3fbebe1b8
17 changed files with 726 additions and 86 deletions
|
|
@ -5,8 +5,23 @@ Vue.use(Vuex)
|
|||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
alert: {
|
||||
color: '',
|
||||
text: '',
|
||||
enabled: false
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
ADD_ALERT (state, payload) {
|
||||
state.alert = {
|
||||
color: payload.color,
|
||||
text: payload.text,
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
DISABLE_ALERT (state) {
|
||||
state.alert.enabled = false
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue