mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
29 lines
376 B
JavaScript
29 lines
376 B
JavaScript
|
|
const getDefaultState = () => {
|
|
return {
|
|
panelName: ''
|
|
}
|
|
}
|
|
|
|
const state = getDefaultState()
|
|
|
|
const mutations = {
|
|
setPanelName: (state, panelName) => {
|
|
state.panelName = panelName
|
|
}
|
|
}
|
|
|
|
const actions = {
|
|
setPanelName({ commit }, panelName) {
|
|
commit('setPanelName', panelName)
|
|
}
|
|
}
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
mutations,
|
|
actions
|
|
}
|
|
|