Xing Jinwen | ff16b1e | 2025-06-05 00:29:26 +0800 | [diff] [blame^] | 1 | import { createStore } from 'vuex' |
2 | import auth from './modules/auth' | ||||
3 | |||||
4 | export default createStore({ | ||||
5 | state: { | ||||
6 | // 可以为空 | ||||
7 | }, | ||||
8 | getters: { | ||||
9 | // 可以为空,因为 auth 模块有自己的 getters | ||||
10 | }, | ||||
11 | mutations: { | ||||
12 | // 可以为空 | ||||
13 | }, | ||||
14 | actions: { | ||||
15 | // 可以为空 | ||||
16 | }, | ||||
17 | modules: { | ||||
18 | auth | ||||
19 | } | ||||
20 | }) |