forgot to add new plugin
This commit is contained in:
19
plugins/vuex.js
Normal file
19
plugins/vuex.js
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
});
|
||||
Reference in New Issue
Block a user