refactor(frontend): 优化 Windows 平台下窗口打开方式

- 在 stock.vue 中添加了对 Windows 平台下窗口打开方式的特殊处理
- 指定窗口大小和位置,隐藏菜单栏和工具栏,以实现更佳的用户体验
This commit is contained in:
ArvinLovegood 2025-07-10 17:31:42 +08:00
parent 119f0f8aa7
commit f5c621fbcc
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
8d3264f90073dfceb29c3619775d830d
2d63c3a999d797889c01d6c96451b197

View File

@ -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)