perf: 优化查看长消息内容

This commit is contained in:
kuaifan 2025-02-12 20:35:56 +08:00
parent bc18aeeadc
commit 15370a93c7
2 changed files with 8 additions and 4 deletions

View File

@ -3747,6 +3747,7 @@ export default {
return
}
const path = `/single/file/msg/${data.id}`;
const title = data.type === 'longtext' ? this.$L('消息详情') : (`${msg.name} (${$A.bytesToSize(msg.size)})`);
if (this.$Electron) {
this.$store.dispatch('openChildWindow', {
name: `file-msg-${data.id}`,
@ -3754,7 +3755,7 @@ export default {
userAgent: "/hideenOfficeTitle/",
force: false,
config: {
title: `${msg.name} (${$A.bytesToSize(msg.size)})`,
title,
titleFixed: true,
parent: null,
width: Math.min(window.screen.availWidth, 1440),
@ -3764,7 +3765,7 @@ export default {
} else if (this.$isEEUiApp) {
this.$store.dispatch('openAppChildPage', {
pageType: 'app',
pageTitle: `${msg.name} (${$A.bytesToSize(msg.size)})`,
pageTitle: title,
url: 'web.js',
params: {
titleFixed: true,

View File

@ -1480,10 +1480,13 @@
justify-content: center;
margin-top: 12px;
border-top: 1px solid rgba(227, 227, 227, 0.42);
padding-top: 12px;
padding-bottom: 2px;
> span {
cursor: pointer;
flex: 1;
text-align: center;
height: 100%;
padding: 12px;
margin-bottom: -10px;
}
}