From 6a7ec8116847cdec2b75295708b773b1a9c57bcf Mon Sep 17 00:00:00 2001 From: 棉花 <12559203+radish-hi_0@user.noreply.gitee.com> Date: 星期五, 08 十二月 2023 17:55:11 +0800 Subject: [PATCH] fix: 删除重复环境变量ElUploadInstance --- src/views/login.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 1084c02..e5c73fa 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -100,6 +100,10 @@ // 绉熸埛鍒楄〃 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) { @@ -121,6 +125,7 @@ const [err] = await to(userStore.login(loginForm.value)); if (!err) { await router.push({ path: redirect.value || '/' }); + loading.value = false; } else { loading.value = false; // 閲嶆柊鑾峰彇楠岃瘉鐮� -- Gitblit v1.9.3