@@ -3,15 +3,17 @@ import Vuex, { ActionContext } from 'vuex'
3
3
import { Context } from '@nuxt/types/app'
4
4
import { createProxy , extractVuexModule } from 'vuex-class-component'
5
5
import jwtDecode from 'jwt-decode'
6
- import { UserStore } from '@/store/modules/user '
6
+ import { AppStore } from '@/store/modules/app '
7
7
import { ClassDataStore } from '@/store/modules/classData'
8
+ import { UserStore } from '@/store/modules/user'
8
9
9
10
Vue . use ( Vuex )
10
11
11
12
export const store = new Vuex . Store ( {
12
13
modules : {
13
- ...extractVuexModule ( UserStore ) ,
14
- ...extractVuexModule ( ClassDataStore )
14
+ ...extractVuexModule ( AppStore ) ,
15
+ ...extractVuexModule ( ClassDataStore ) ,
16
+ ...extractVuexModule ( UserStore )
15
17
}
16
18
} )
17
19
@@ -29,6 +31,7 @@ export const actions = {
29
31
}
30
32
31
33
export const vxm = {
32
- user : createProxy ( store , UserStore ) ,
33
- classData : createProxy ( store , ClassDataStore )
34
+ app : createProxy ( store , AppStore ) ,
35
+ classData : createProxy ( store , ClassDataStore ) ,
36
+ user : createProxy ( store , UserStore )
34
37
}
0 commit comments