In this advanced module structure, you can have a /store/ directory that contains a /modules/ directory that keeps all modules in subfolders of this folder. We can split a module's state, actions, mutations, and getters into separate files and then keep them in the module folder with the following steps:
- Create a /store/ directory that contains a /modules/ directory for the store modules, as follows:
// vuex-sfc/structuring-modules/advanced/
├── index.html
├── entry.js
├── components
│ └── app.vue
└── store
├── index.js
├── action.js
└── ...
├── module1
│ ├── index.js
│ ├── state.js
│ ├── mutations.js
│ └─...