mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
refactor(frontend): 优化 Windows 平台下窗口打开方式
- 在 stock.vue 中添加了对 Windows 平台下窗口打开方式的特殊处理 - 指定窗口大小和位置,隐藏菜单栏和工具栏,以实现更佳的用户体验
This commit is contained in:
parent
119f0f8aa7
commit
f5c621fbcc
@ -1 +1 @@
|
||||
8d3264f90073dfceb29c3619775d830d
|
||||
2d63c3a999d797889c01d6c96451b197
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user