mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2025-12-30 09:52:27 +00:00
update 优化 登录页面redirect重定向功能
This commit is contained in:
@@ -100,6 +100,10 @@ const loginRef = ref<ElFormInstance>();
|
||||
// 租户列表
|
||||
const tenantList = ref<TenantVO[]>([]);
|
||||
|
||||
watch(() => router.currentRoute.value, (newRoute: any) => {
|
||||
redirect.value = newRoute.query && newRoute.query.redirect;
|
||||
}, { immediate: true });
|
||||
|
||||
const handleLogin = () => {
|
||||
loginRef.value?.validate(async (valid: boolean, fields: any) => {
|
||||
if (valid) {
|
||||
|
||||
Reference in New Issue
Block a user