mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-27 04:58:12 +00:00
perf: 优化查看长消息内容
This commit is contained in:
parent
bc18aeeadc
commit
15370a93c7
@ -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,
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user