Commit 84db41e0 by 陆志强

feat: 修复跳转

parent bcba9699
......@@ -45,7 +45,7 @@ export const state = () => ({
voteRankState: false, // 排行开启开关 1开启 0关闭
isShowInvite: false, // 是否显示马上拉票
shareTitle: '', // 分享标题
referUrl: '', // 回跳地址
refer_url: '', // 回跳地址
bind_service: '', // 绑定服务
bind_service_force_open: 0, // 绑定服务强制开启
bind_service_id: 0 // 绑定服务id
......@@ -143,10 +143,10 @@ export const actions = {
isShowInvite: Number(is_invite) === 1,
shareTitle,
shareImg: share_img,
referUrl,
bindService,
bindServiceForceOpen,
bindServiceId
refer_url,
bind_service,
bind_service_force_open,
bind_service_id
}
// 设置网页标题
document.title = topic || '投票'
......@@ -225,13 +225,13 @@ export const actions = {
setVote(params).then(res => {
const { code, errorCode, errorMessage, data } = res
if (code === 200 && errorCode === 0) {
const referUrl = voteInfo.referUrl
if (referUrl) {
const refer_url = voteInfo.referUrl
if (refer_url) {
Toast.success({
message: '投票成功,正在跳转',
onClose: () => {
if (referUrl) {
window.location.href = state.questionnaireInfo.referUrl
if (refer_url) {
window.location.href = refer_url
}
},
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment