|
|
@@ -19,8 +19,7 @@ service.interceptors.request.use( |
|
|
|
// let each request carry token
|
|
|
|
// ['X-Token'] is a custom headers key
|
|
|
|
// please modify it according to the actual situation
|
|
|
|
// config.headers['Authorization'] = getToken()
|
|
|
|
config.token['Authorization'] = Cookies.get('token')
|
|
|
|
config.headers['token'] = Cookies.get('token')
|
|
|
|
}
|
|
|
|
return config
|
|
|
|
},
|
|
|
|