From f1e42b69b9537885247f7b1421fe1d3a12fbf204 Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Fri, 16 Aug 2024 18:09:25 +0800 Subject: [PATCH] 12312 --- src/views/vote/index.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/views/vote/index.vue b/src/views/vote/index.vue index 19e75a0..10c747d 100644 --- a/src/views/vote/index.vue +++ b/src/views/vote/index.vue @@ -24,11 +24,9 @@ if(res.data.status===2){ } if(res.status===401){ if (!document.cookie){ - window.location.href = `${ - import.meta.env.VITE_BASEURL - }/api/appointment/wx?notifyUrl=${encodeURIComponent( - window.location.href - )}` + setTimeout(()=>{ + window.location.href = `${import.meta.env.VITE_BASEURL}/api/appointment/wx?notifyUrl=${encodeURIComponent(window.location.href)}` + },10000) } /*cWxApi()*/