From 99ae0ecb1fd1c5c9ca60fd93f1806fbacc2aae69 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 9 Jan 2026 17:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E6=99=AE=E7=AD=94=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 1 + pages/answer/index.vue | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 995cdbf..410e603 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -49,6 +49,7 @@ const install = (Vue, vm) => { icon: "none", title: res?.data?.errmsg }) + return res.data } return false; } else { diff --git a/pages/answer/index.vue b/pages/answer/index.vue index 0062bb2..766e0be 100644 --- a/pages/answer/index.vue +++ b/pages/answer/index.vue @@ -48,7 +48,7 @@ + :key="`${questionIndex}-${ans.id || ansindex}`"> @@ -374,6 +374,11 @@ }) } + // 强制更新视图,确保选项正确渲染 + that.$nextTick(() => { + that.$forceUpdate() + }) + // 重置倒计时 that.resetTimer() if (that.questionIndex >= 4) { @@ -453,6 +458,11 @@ }) } + // 强制更新视图,确保选项正确渲染 + that.$nextTick(() => { + that.$forceUpdate() + }) + // 重置倒计时 that.resetTimer() @@ -680,15 +690,20 @@ .answercheck { padding: 30rpx; padding-top: 0rpx; + + &:last-child .answeritem-wrapper { + margin-bottom: 0; + } } .answeritem-wrapper { - // margin-bottom: 20rpx; + margin-bottom: 20rpx; border-radius: 100rpx; padding: 4rpx 20rpx; background-color: #fff; border: 4rpx solid transparent; - transition: all 0.3s; + transition: border-color 0.3s, background-color 0.3s; + box-sizing: border-box; } .answeritem-wrapper.active {