@@ -9,7 +9,7 @@ const user = {
99 code : '' ,
1010 uid : undefined ,
1111 auth_type : '' ,
12- token : Cookies . get ( 'X-Ivanka -Token' ) ,
12+ token : Cookies . get ( 'Admin -Token' ) ,
1313 name : '' ,
1414 avatar : '' ,
1515 introduction : '' ,
@@ -68,7 +68,7 @@ const user = {
6868 return new Promise ( ( resolve , reject ) => {
6969 loginByEmail ( email , userInfo . password ) . then ( response => {
7070 const data = response . data ;
71- Cookies . set ( 'X-Ivanka -Token' , response . data . token ) ;
71+ Cookies . set ( 'Admin -Token' , response . data . token ) ;
7272 commit ( 'SET_TOKEN' , data . token ) ;
7373 commit ( 'SET_EMAIL' , email ) ;
7474 resolve ( ) ;
@@ -102,7 +102,7 @@ const user = {
102102 commit ( 'SET_CODE' , code ) ;
103103 loginByThirdparty ( state . status , state . email , state . code , state . auth_type ) . then ( response => {
104104 commit ( 'SET_TOKEN' , response . data . token ) ;
105- Cookies . set ( 'X-Ivanka -Token' , response . data . token ) ;
105+ Cookies . set ( 'Admin -Token' , response . data . token ) ;
106106 resolve ( ) ;
107107 } ) . catch ( error => {
108108 reject ( error ) ;
@@ -117,7 +117,7 @@ const user = {
117117 logout ( state . token ) . then ( ( ) => {
118118 commit ( 'SET_TOKEN' , '' ) ;
119119 commit ( 'SET_ROLES' , [ ] ) ;
120- Cookies . remove ( 'X-Ivanka -Token' ) ;
120+ Cookies . remove ( 'Admin -Token' ) ;
121121 resolve ( ) ;
122122 } ) . catch ( error => {
123123 reject ( error ) ;
@@ -129,7 +129,7 @@ const user = {
129129 FedLogOut ( { commit } ) {
130130 return new Promise ( resolve => {
131131 commit ( 'SET_TOKEN' , '' ) ;
132- Cookies . remove ( 'X-Ivanka -Token' ) ;
132+ Cookies . remove ( 'Admin -Token' ) ;
133133 resolve ( ) ;
134134 } ) ;
135135 }
0 commit comments