@@ -9,7 +9,7 @@ const user = {
9
9
code : '' ,
10
10
uid : undefined ,
11
11
auth_type : '' ,
12
- token : Cookies . get ( 'X-Ivanka -Token' ) ,
12
+ token : Cookies . get ( 'Admin -Token' ) ,
13
13
name : '' ,
14
14
avatar : '' ,
15
15
introduction : '' ,
@@ -68,7 +68,7 @@ const user = {
68
68
return new Promise ( ( resolve , reject ) => {
69
69
loginByEmail ( email , userInfo . password ) . then ( response => {
70
70
const data = response . data ;
71
- Cookies . set ( 'X-Ivanka -Token' , response . data . token ) ;
71
+ Cookies . set ( 'Admin -Token' , response . data . token ) ;
72
72
commit ( 'SET_TOKEN' , data . token ) ;
73
73
commit ( 'SET_EMAIL' , email ) ;
74
74
resolve ( ) ;
@@ -102,7 +102,7 @@ const user = {
102
102
commit ( 'SET_CODE' , code ) ;
103
103
loginByThirdparty ( state . status , state . email , state . code , state . auth_type ) . then ( response => {
104
104
commit ( 'SET_TOKEN' , response . data . token ) ;
105
- Cookies . set ( 'X-Ivanka -Token' , response . data . token ) ;
105
+ Cookies . set ( 'Admin -Token' , response . data . token ) ;
106
106
resolve ( ) ;
107
107
} ) . catch ( error => {
108
108
reject ( error ) ;
@@ -117,7 +117,7 @@ const user = {
117
117
logout ( state . token ) . then ( ( ) => {
118
118
commit ( 'SET_TOKEN' , '' ) ;
119
119
commit ( 'SET_ROLES' , [ ] ) ;
120
- Cookies . remove ( 'X-Ivanka -Token' ) ;
120
+ Cookies . remove ( 'Admin -Token' ) ;
121
121
resolve ( ) ;
122
122
} ) . catch ( error => {
123
123
reject ( error ) ;
@@ -129,7 +129,7 @@ const user = {
129
129
FedLogOut ( { commit } ) {
130
130
return new Promise ( resolve => {
131
131
commit ( 'SET_TOKEN' , '' ) ;
132
- Cookies . remove ( 'X-Ivanka -Token' ) ;
132
+ Cookies . remove ( 'Admin -Token' ) ;
133
133
resolve ( ) ;
134
134
} ) ;
135
135
}
0 commit comments