1.解决线上报错token的问题

v1.0.0
sws 2024-10-23 13:34:41 +08:00
parent 845a9f63e7
commit 2945436bb0
1 changed files with 1 additions and 1 deletions

View File

@ -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;