From 1ee871886f44771f50c4fbedaa367527f71b9a9a Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Tue, 15 Nov 2022 19:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E7=99=BB?= =?UTF-8?q?=E5=BD=95bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/utils/request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/src/utils/request.js b/back/src/utils/request.js index 23b7fd03..790dc0dc 100644 --- a/back/src/utils/request.js +++ b/back/src/utils/request.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-05-11 20:03:41 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-11-11 11:07:09 + * @LastEditTime: 2022-11-15 19:26:30 * @Description: 告诉大家这是什么 */ import axios from 'axios' @@ -102,7 +102,7 @@ http.interceptors.response.use( response['Access-Control-Expose-Headers'] = 'redirect' const { code, message } = response.data if (response.headers.token) { - Cookies.set('ucsToken', response.headers.token, { expires: 'session' }) + Cookies.set('ucsToken', response.headers.token) } if (response.headers.redirect) { window.location.href = response.headers.redirect