1.解决线上报错token的问题
parent
845a9f63e7
commit
2945436bb0
|
|
@ -40,7 +40,7 @@ service.interceptors.request.use(
|
|||
config.url = config.url + symbol + 'token=' + temp_data.default.temp_token;
|
||||
} else {
|
||||
if (cookie && cookie !== null && cookie !== 'null') {
|
||||
config.url = config.url + '&token=' + JSON.parse(cookie) !== 'null' ? JSON.parse(cookie)?.token : '';
|
||||
config.url = config.url + '&token=' + (JSON.parse(cookie) !== 'null' ? JSON.parse(cookie)?.token : '');
|
||||
}
|
||||
}
|
||||
return config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue