From 00916b6230fb8ff9b33ce0f289224ded83cb7f0d Mon Sep 17 00:00:00 2001 From: yuepenglong <1547476325@qq.com> Date: Wed, 2 Apr 2025 10:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/votingElection/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/votingElection/index.vue b/src/pages/votingElection/index.vue index 8d82274..2be34f4 100644 --- a/src/pages/votingElection/index.vue +++ b/src/pages/votingElection/index.vue @@ -69,7 +69,7 @@ const allChange = () => { content: '确定吗?', success: function (res) { if (res.confirm) { - xjList.value.data?.forEach((ele: { vote_result: number }) => { + xjList.value.candidate?.forEach((ele: { vote_result: number }) => { ele.vote_result = 1 }) params.value = xjList.value.candidate @@ -100,7 +100,9 @@ const submit = () => { duration: 1500 // 持续时长,单位ms }) } else { - voteMember(param) + voteMember(param).then(res=> { + uni.showToast({ title: res.msg, icon: 'success', duration: 1000 }) + }) } }