Commit f2fb7dc9 authored by 皮倩雯's avatar 皮倩雯

fix: '开启网关自动跳转登录页'

parent 881e9408
Pipeline #64327 passed with stages
......@@ -92,10 +92,11 @@ const GateConfig = () => {
} else {
UpdateGeteWay({ isUsed: checked }).then(res => {
if (res.code === 0) {
console.log(localStorage.getItem('token'));
// 关闭网关清空token
localStorage.setItem('token', '');
window.globalConfig = {
...window.globalConfig,
access_token: localStorage.getItem('token'),
access_token: '',
hasGateWay: false,
apiGatewayDomain: `${window.location.origin}`,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment