This commit is contained in:
caozehui
2024-12-27 14:29:21 +08:00
parent c6836cad06
commit 3d9ba8b1cb
2 changed files with 13 additions and 9 deletions

View File

@@ -110,7 +110,7 @@
<!-- <template #header>-->
<!-- <div style="background: #003078 !important; color: #fff !important; font-size: 18px;">检测项进度</div>-->
<!-- </template>-->
<div ref="scrollContainerRef">
<div ref="scrollContainerRef" style="height: 100%; overflow-y: auto;">
<p v-for="(item, index) in testLogList"
:key="index"
:style="{color:item.type==='error'?'#F56C6C': item.type==='warning'?'#e6a23c':'var(--el-text-color-regular)'}">
@@ -603,7 +603,6 @@ const updateCheckResult = (data: CheckData.ScriptChnItem) => {
const scrollToBottom = () => {
if (scrollContainerRef.value) {
scrollContainerRef.value.scrollTop = scrollContainerRef.value.scrollHeight;
console.log(scrollContainerRef.value.scrollTop)
}
};