任一存 %!s(int64=2) %!d(string=hai) anos
pai
achega
5956de4fee
Modificáronse 1 ficheiros con 11 adicións e 2 borrados
  1. 11 2
      src/views/QuestionJudge.vue

+ 11 - 2
src/views/QuestionJudge.vue

@@ -104,8 +104,11 @@
         重新答题
       </button>
       <button
-        v-if="questionInfo?.descText"
+        v-if="!isDescInline"
         class="watch-desc"
+        :class="{
+          disabled: !questionInfo?.descText
+        }"
         @click="onClickWatchDesc"
       >
         答案解析
@@ -173,7 +176,9 @@ export default {
           this.$refs['question-pending']?.selectedIdxList,
           this.questionInfo.badgeTypeCode,
         )
-        this.isShowDesc = true
+        if (this.isDescInline) {
+          this.isShowDesc = true
+        }
       }
     },
     onClickWatchDesc() {
@@ -325,6 +330,10 @@ export default {
       font-family: LiSu-Regular, LiSu;
       font-weight: 400;
       color: #8F4831;
+      &.disabled {
+        opacity: 0.5;
+        pointer-events: none;
+      }
     }
   }
   > button.return-question {