2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

特性(全局):修复登录后表格无法鉴权的bug

This commit is contained in:
耗子
2022-12-01 14:09:45 +08:00
parent 268d9fe2f0
commit 3c2c928e83

View File

@@ -86,7 +86,12 @@
, icon: 1
, time: 1000
}, function () {
location.hash = search.redirect ? decodeURIComponent(search.redirect) : '/';
/**
* 可能是LayuiAdmin的bug如果直接跳转到主页会出现表格无法获取access_token的问题
* 所以这里强制刷新到主页
* location.hash = search.redirect ? decodeURIComponent(search.redirect) : '/';
*/
location.href = '/';
});
}
});