0๐
/store/modules/auth.js
import Vue from "vue";
import Vuex from "vuex";
import auth from "./modules/auth";
export default new Vuex.Store({
state: {
token: null
},
getters: {},
mutations: {},
actions: {},
modules: {
auth: { // it's registry name, will be used while accessing module content.
namespaced: true,
...auth // actual module content.
}
}
});
While registering the module, you are not providing the actual module
content.
Ref vue doc: https://vuex.vuejs.org/guide/modules.html#namespacing
- [Vuejs]-How to get the current Elastic APM instance in Vue.js?
- [Vuejs]-Dockerfile for .NET Core 3 Web API + SPA application (vue)
Source:stackexchange.com