Parcourir la source

style: 修复代码格式与隐藏废弃的AI刷新按钮

- 格式化formatter函数的空格
- 修正watch回调的缩进
- 隐藏了暂未使用的ai_refresh按钮
lsc il y a 5 jours
Parent
commit
a535d67698
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/views/Student/components/choiceQuestionDetailDialog.vue

+ 3 - 3
src/views/Student/components/choiceQuestionDetailDialog.vue

@@ -153,7 +153,7 @@
               </svg>{{ lang.ssAnalysis }}
             </div>
             <div class="ai_refresh" :class="{ 'disabled': currentAnalysis && currentAnalysis.loading }"
-              @click.stop="aiAnalysisRefresh78()">
+              @click.stop="aiAnalysisRefresh78()" v-if="false">
               {{ lang.ssAIGenerate }}
               <svg viewBox="0 0 1024 1024" width="200" height="200">
                 <path
@@ -744,7 +744,7 @@ const setEchartsArea1 = () => {
           fontSize: 17,
           lineHeight: 20,
           interval: 0,
-          formatter: function (value: any, idx: number) {
+          formatter: function(value: any, idx: number) {
             // 如果是字符串且格式为JSON(图片),则解析处理
             if (typeof value === 'string') {
               try {
@@ -1504,7 +1504,7 @@ const clickContent = (flag: boolean) => {
 watch(
   () => props.showData?.workDetail,
   (newId, oldId) => {
-      getAnalysis()
+    getAnalysis()
   },
   { immediate: true }
 )