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 {