Przeglądaj źródła

优化了写作编辑页面的样式

Jiang Pengyu 1 rok temu
rodzic
commit
2d9426812c

+ 1 - 0
src/components/QuillEditor/Editor.vue

@@ -186,6 +186,7 @@ import {ElMessage} from "element-plus";
 .main-container :deep(.ql-toolbar) {
   height: 5%;
   background: #fff;
+  min-height: 40px;
 }
 
 .main-container :deep(.ql-formats) {

+ 3 - 3
src/views/Home/component/Silder/index.vue

@@ -42,7 +42,7 @@
         <div>智能批改</div> 
         <div class="edit-box-header">
           <el-button @click="handleCorrect" :disabled="!showCorrectBtn" @mouseover="handleCorrectTip">开始批改</el-button>
-          <el-button @click="handleCorrectToPage" :disabled="!showCorrectToPageBtn" @mouseover="handleCorrectToPageTip">查看完整批改报告</el-button>
+          <el-button @click="handleCorrectToPage" :disabled="!showCorrectToPageBtn" @mouseenter="handleCorrectToPageTip">查看完整批改报告</el-button>
         </div>
         <div class="capacity-item">
           <div v-loading="loading" element-loading-text="智能批改中" class="remark">{{ data.overallEvaluation?.evaluation }}</div>
@@ -255,10 +255,10 @@ import * as path from "node:path";
     }
   }, 2000); // 2秒的节流时间
 
-  const handleCorrectToPageTip = () => {
+  const handleCorrectToPageTip = throttle(() => {
     if(!showCorrectToPageBtn.value)
       ElMessage.error("批改后查看报告")
-  }
+  }, 1000); // 1秒的节流时间
 
   // 监听props变化
   watch(() => props.engagement, (newEngagement, oldEngagement) => {