调整移动动端空状态大小、加载时标题改成空

This commit is contained in:
eoao
2025-06-29 22:01:39 +08:00
parent c72213b97d
commit 52e5915d93
9 changed files with 192 additions and 192 deletions

View File

@@ -148,7 +148,7 @@
<div>没有更多数据了</div>
</div>
<div class="empty" v-if="noLoading && emailList.length === 0">
<el-empty description="没有任何邮件"/>
<el-empty :image-size="isMobile ? 120 : 0" description="没有任何邮件"/>
</div>
</div>
</el-scrollbar>
@@ -223,6 +223,7 @@ let scrollTop = 0
const latestEmail = ref(null)
const scrollbarRef = ref(null)
let reqLock = false
let isMobile = window.innerWidth < 1025
const queryParam = reactive({
emailId: 0,
size: 30,
@@ -403,7 +404,6 @@ function addItem(email) {
}
}
latestEmail.value = email
total.value++
}

View File

@@ -39,8 +39,6 @@ function updateContent() {
const bodyStyleMatch = props.html.match(bodyStyleRegex);
const bodyStyle = bodyStyleMatch ? bodyStyleMatch[1] : '';
console.log(bodyStyle)
// 2. 移除 <body> 标签(保留内容)
const cleanedHtml = props.html.replace(/<\/?body[^>]*>/gi, '');