File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import cards from '../store/modules/cards'
6
6
import schedules from '../store/modules/schedules'
7
7
import devidedschedules from '../store/modules/devidedschedules'
8
8
import date from '../store/modules/date'
9
+ import auth from '../store/modules/auth'
9
10
10
11
Vue . use ( Vuex )
11
12
@@ -17,6 +18,7 @@ const store = new Vuex.Store({
17
18
schedules,
18
19
// devidedschedules,
19
20
date,
21
+ auth,
20
22
}
21
23
} )
22
24
Original file line number Diff line number Diff line change
1
+ import axios from 'axios'
2
+
3
+
4
+ const auth = {
5
+ namespaced : true ,
6
+ state : {
7
+ user : [ ] ,
8
+ auth : { }
9
+ } ,
10
+ getters : {
11
+ user : state => state . user ,
12
+ auth : state => state . auth
13
+ } ,
14
+ mutations : {
15
+ user ( state , value ) {
16
+ state . user = value
17
+ } ,
18
+ auth ( state , value ) {
19
+ state . auth = value
20
+ }
21
+ } ,
22
+ actions :{
23
+ } ,
24
+ getters : {
25
+ } ,
26
+ }
27
+
28
+ export default auth ;
You can’t perform that action at this time.
0 commit comments