diff --git a/src/utils/request.ts b/src/utils/request.ts index 2a515aa8..67899a4c 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -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;