mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 11:09:16 +08:00
fix: 解决登陆状态下跳转安全入口的问题 (#3702)
This commit is contained in:
parent
ca1710cabc
commit
48187b508d
@ -15,10 +15,8 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
if (to.name === 'entrance' && globalStore.isLogin) {
|
||||
if (to.params.code === globalStore.entrance) {
|
||||
globalStore.setLogStatus(false);
|
||||
next({
|
||||
name: 'entrance',
|
||||
params: { code: globalStore.entrance },
|
||||
name: 'home',
|
||||
});
|
||||
NProgress.done();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user