mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
parent
c13e2a36cc
commit
66a451fc1f
@ -13,6 +13,14 @@ router.beforeEach((to, from, next) => {
|
||||
axiosCanceler.removeAllPending();
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
if (to.name === 'home' && !globalStore.isLogin) {
|
||||
next({
|
||||
name: 'entrance',
|
||||
params: { code: globalStore.entrance },
|
||||
});
|
||||
NProgress.done();
|
||||
return;
|
||||
}
|
||||
if (to.name === 'entrance' && globalStore.isLogin) {
|
||||
if (to.params.code === globalStore.entrance) {
|
||||
next({
|
||||
|
Loading…
x
Reference in New Issue
Block a user