mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-05 04:44:13 +00:00
perf: 优化查看长消息内容
This commit is contained in:
parent
bc18aeeadc
commit
15370a93c7
@ -3747,6 +3747,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const path = `/single/file/msg/${data.id}`;
|
const path = `/single/file/msg/${data.id}`;
|
||||||
|
const title = data.type === 'longtext' ? this.$L('消息详情') : (`${msg.name} (${$A.bytesToSize(msg.size)})`);
|
||||||
if (this.$Electron) {
|
if (this.$Electron) {
|
||||||
this.$store.dispatch('openChildWindow', {
|
this.$store.dispatch('openChildWindow', {
|
||||||
name: `file-msg-${data.id}`,
|
name: `file-msg-${data.id}`,
|
||||||
@ -3754,7 +3755,7 @@ export default {
|
|||||||
userAgent: "/hideenOfficeTitle/",
|
userAgent: "/hideenOfficeTitle/",
|
||||||
force: false,
|
force: false,
|
||||||
config: {
|
config: {
|
||||||
title: `${msg.name} (${$A.bytesToSize(msg.size)})`,
|
title,
|
||||||
titleFixed: true,
|
titleFixed: true,
|
||||||
parent: null,
|
parent: null,
|
||||||
width: Math.min(window.screen.availWidth, 1440),
|
width: Math.min(window.screen.availWidth, 1440),
|
||||||
@ -3764,7 +3765,7 @@ export default {
|
|||||||
} else if (this.$isEEUiApp) {
|
} else if (this.$isEEUiApp) {
|
||||||
this.$store.dispatch('openAppChildPage', {
|
this.$store.dispatch('openAppChildPage', {
|
||||||
pageType: 'app',
|
pageType: 'app',
|
||||||
pageTitle: `${msg.name} (${$A.bytesToSize(msg.size)})`,
|
pageTitle: title,
|
||||||
url: 'web.js',
|
url: 'web.js',
|
||||||
params: {
|
params: {
|
||||||
titleFixed: true,
|
titleFixed: true,
|
||||||
|
|||||||
@ -1480,10 +1480,13 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
border-top: 1px solid rgba(227, 227, 227, 0.42);
|
border-top: 1px solid rgba(227, 227, 227, 0.42);
|
||||||
padding-top: 12px;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
> span {
|
> span {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
height: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
margin-bottom: -10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user