mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 19:19:15 +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.name === 'entrance' && globalStore.isLogin) {
|
||||||
if (to.params.code === globalStore.entrance) {
|
if (to.params.code === globalStore.entrance) {
|
||||||
globalStore.setLogStatus(false);
|
|
||||||
next({
|
next({
|
||||||
name: 'entrance',
|
name: 'home',
|
||||||
params: { code: globalStore.entrance },
|
|
||||||
});
|
});
|
||||||
NProgress.done();
|
NProgress.done();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user