fix: 解决登陆状态下跳转安全入口的问题 (#3702)

This commit is contained in:
ssongliu 2024-01-25 18:17:26 +08:00 committed by GitHub
parent ca1710cabc
commit 48187b508d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;