mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 16:58:36 +00:00
25 lines
441 B
JavaScript
25 lines
441 B
JavaScript
export const state = () => ({
|
|
routeComponentMounted: false,
|
|
currentRoute: null,
|
|
})
|
|
|
|
export const mutations = {
|
|
SET_ROUTE_MOUNTED(state, { mounted, route }) {
|
|
state.routeComponentMounted = mounted
|
|
state.currentRoute = route
|
|
},
|
|
}
|
|
|
|
export const getters = {
|
|
routeMounted(state) {
|
|
return state.routeComponentMounted ? state.currentRoute : null
|
|
},
|
|
}
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
mutations,
|
|
}
|