From d60d3f374b081cbbd2ba848a0c69c4b222728582 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 3 Nov 2025 14:46:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E5=B0=BA=E5=AF=B8=E8=AE=A1=E7=AE=97=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/TaskDetail.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/pages/manage/components/TaskDetail.vue b/resources/assets/js/pages/manage/components/TaskDetail.vue index 271061c51..ba3137e47 100755 --- a/resources/assets/js/pages/manage/components/TaskDetail.vue +++ b/resources/assets/js/pages/manage/components/TaskDetail.vue @@ -1891,10 +1891,11 @@ export default { title: this.taskDetail.name, titleFixed: true, parent: null, - width: Math.min(window.screen.availWidth, this.$el.clientWidth + 72), - height: Math.min(window.screen.availHeight, this.$el.clientHeight + 72), + width: Math.min(window.screen.availWidth * 0.8, this.$el.clientWidth + 72), + height: Math.min(window.screen.availHeight * 0.8, this.$el.clientHeight + 72), minWidth: 600, minHeight: 450, + autoZoom: true, }; if (this.hasOpenDialog) { config.minWidth = 800; @@ -1911,9 +1912,11 @@ export default { resizeDialog() { return new Promise(resolve => { + const width = Math.max(1100, this.windowWidth); + const height = Math.max(720, Math.min(width * 0.8, this.windowHeight)); this.$Electron.sendMessage('windowSize', { - width: Math.max(1100, this.windowWidth), - height: Math.max(720, this.windowHeight), + width, + height, minWidth: 800, minHeight: 600, autoZoom: true,