fix: 新建数据源URL退出后使用URL登陆类型丢失

This commit is contained in:
dataeaseShu 2023-11-03 10:57:39 +08:00
parent 01cce13e3e
commit 11743009b9

View File

@ -141,7 +141,7 @@ router.beforeEach(async (to, from, next) => routeBefore(() => {
next()
} else {
// other pages that do not have permission to access are redirected to the login page.
next(`/login?redirect=${to.fullPath}`)
next(`/login?redirect=${encodeURIComponent(to.fullPath)}`)
NProgress.done()
}
}