diff --git a/src/views/vote/index.vue b/src/views/vote/index.vue index 66182fd..19e75a0 100644 --- a/src/views/vote/index.vue +++ b/src/views/vote/index.vue @@ -2,7 +2,6 @@ import {useAuth} from "@/store/auth/index.js"; import {useRoute, useRouter} from 'vue-router'; import {cWxApi, voteStatus} from "@/api/auth/index.js"; -import axios from "axios"; const {detailData,workUid,getWorkInfo,workData,openMask,sendVote} =useAuth() const route = useRoute() @@ -24,8 +23,15 @@ 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 + )}` + } - cWxApi() + /*cWxApi()*/ } })