19 lines
407 B
JavaScript
19 lines
407 B
JavaScript
import { createStore } from "vuex";
|
|
|
|
const store = createStore({
|
|
state() {
|
|
return {
|
|
assetEditable: false,
|
|
};
|
|
},
|
|
mutations: {
|
|
toggleEditableAsset(state) {
|
|
state.assetEditable = !state.assetEditable
|
|
},
|
|
},
|
|
});
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.vueApp.use(store);
|
|
// Install the store instance as a plugin
|
|
}); |