From f5c621fbcc6a10a701cf7ebe6f736b69c860c705 Mon Sep 17 00:00:00 2001 From: ArvinLovegood Date: Thu, 10 Jul 2025 17:31:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20=E4=BC=98=E5=8C=96=20Wind?= =?UTF-8?q?ows=20=E5=B9=B3=E5=8F=B0=E4=B8=8B=E7=AA=97=E5=8F=A3=E6=89=93?= =?UTF-8?q?=E5=BC=80=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 stock.vue 中添加了对 Windows 平台下窗口打开方式的特殊处理 - 指定窗口大小和位置,隐藏菜单栏和工具栏,以实现更佳的用户体验 --- frontend/package.json.md5 | 2 +- frontend/src/components/stock.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 index 799119d..fce852e 100644 --- a/frontend/package.json.md5 +++ b/frontend/package.json.md5 @@ -1 +1 @@ -8d3264f90073dfceb29c3619775d830d \ No newline at end of file +2d63c3a999d797889c01d6c96451b197 \ No newline at end of file diff --git a/frontend/src/components/stock.vue b/frontend/src/components/stock.vue index b124dfc..ea0883c 100644 --- a/frontend/src/components/stock.vue +++ b/frontend/src/components/stock.vue @@ -629,7 +629,11 @@ function openCenteredWindow(url, width, height) { Environment().then(env => { switch (env.platform) { case 'windows': - window.open(url, target, features) + window.open( + url, + 'centeredWindow', + `width=${width},height=${height},left=${left},top=${top},location=no,menubar=no,toolbar=no,display=standalone` + ) break default : OpenURL(url)