mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(数据大屏、仪表板): 修复当前页面打开方式跳转弹窗选项无效问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user