fix(数据大屏、仪表板): 修复当前页面打开方式跳转弹窗选项无效问题

This commit is contained in:
wangjiahao
2024-12-02 15:31:30 +08:00
parent 6df09e3976
commit 68bd2cf7aa

View File

@@ -415,10 +415,9 @@ const windowsJump = (url, jumpType, size = 'middle') => {
const width = screen.width * sizeX
const left = screen.width * ((1 - sizeX) / 2)
const top = screen.height * ((1 - sizeY) / 2)
const openType = wsCache.get('open-backend') === '1' ? '_self' : '_blank'
newWindow = window.open(
url,
openType,
'_blank',
`width=${width},height=${height},left=${left},top=${top},toolbar=no,scrollbars=yes,resizable=yes,location=no`
)
} else if ('_self' === jumpType) {