后台管理登录bug修复

This commit is contained in:
wuhongjian 2022-11-15 19:27:22 +08:00
parent ac544cee15
commit 1ee871886f
1 changed files with 2 additions and 2 deletions

View File

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