refactor: 新页面预览不跟随系统设置

This commit is contained in:
wangjiahao 2024-11-28 16:06:49 +08:00
parent e7993d7a0a
commit e1c9fb5b55
2 changed files with 2 additions and 3 deletions

View File

@ -139,8 +139,7 @@ const previewOuter = () => {
}
canvasSave(() => {
const url = '#/preview?dvId=' + dvInfo.value.id + '&ignoreParams=true'
const openType = wsCache.get('open-backend') === '1' ? '_self' : '_blank'
const newWindow = window.open(url, openType)
const newWindow = window.open(url, '_blank')
initOpenHandler(newWindow)
})
}

View File

@ -34,7 +34,7 @@ const favorited = ref(false)
const preview = () => {
const baseUrl = isDataEaseBi.value ? embeddedStore.baseUrl : ''
const url = baseUrl + '#/preview?dvId=' + dvInfo.value.id + '&ignoreParams=true'
const newWindow = window.open(url, openType)
const newWindow = window.open(url, '_blank')
initOpenHandler(newWindow)
}
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)