mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
23 lines
316 B
JavaScript
23 lines
316 B
JavaScript
export const state = () => {
|
|
return {
|
|
open: null,
|
|
data: {},
|
|
}
|
|
}
|
|
|
|
export const mutations = {
|
|
SET_OPEN(state, ctx) {
|
|
state.open = ctx.name || null
|
|
state.data = ctx.data || {}
|
|
},
|
|
}
|
|
|
|
export const getters = {
|
|
open(state) {
|
|
return state.open
|
|
},
|
|
data(state) {
|
|
return state.data
|
|
},
|
|
}
|