后台管理登录bug修复
This commit is contained in:
parent
ac544cee15
commit
1ee871886f
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2022-05-11 20:03:41
|
* @Date: 2022-05-11 20:03:41
|
||||||
* @LastEditors: hisense.wuhongjian
|
* @LastEditors: hisense.wuhongjian
|
||||||
* @LastEditTime: 2022-11-11 11:07:09
|
* @LastEditTime: 2022-11-15 19:26:30
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
*/
|
*/
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
@ -102,7 +102,7 @@ http.interceptors.response.use(
|
||||||
response['Access-Control-Expose-Headers'] = 'redirect'
|
response['Access-Control-Expose-Headers'] = 'redirect'
|
||||||
const { code, message } = response.data
|
const { code, message } = response.data
|
||||||
if (response.headers.token) {
|
if (response.headers.token) {
|
||||||
Cookies.set('ucsToken', response.headers.token, { expires: 'session' })
|
Cookies.set('ucsToken', response.headers.token)
|
||||||
}
|
}
|
||||||
if (response.headers.redirect) {
|
if (response.headers.redirect) {
|
||||||
window.location.href = response.headers.redirect
|
window.location.href = response.headers.redirect
|
||||||
|
|
Loading…
Reference in New Issue