From e7529fbb8ff56bddef9cbf9b2b712d2c185cacf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 25 Aug 2023 12:58:52 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2redirect=E9=87=8D=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/login.vue b/src/views/login.vue index 1084c02..85e3857 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -100,6 +100,10 @@ const loginRef = ref(); // 租户列表 const tenantList = ref([]); +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) {