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