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()*/