From 2945436bb00d943b0c11d6a688b04466ab6b34b8 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 23 Oct 2024 13:34:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=A3=E5=86=B3=E7=BA=BF=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E9=94=99token=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;