Explorar el Código

edit token

master
chutingting hace 1 año
padre
commit
a8466b5817
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      src/api/request.js

+ 1
- 2
src/api/request.js Ver fichero

@@ -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
},


Cargando…
Cancelar
Guardar