fix(系统设置): 系统设置的基础设置中添加页面打开方式选项 当前窗口打开,保持现在的新逻辑,新窗口打开,按原来的逻辑

This commit is contained in:
dataeaseShu
2024-11-21 10:07:17 +08:00
parent 6119a9cf6a
commit 2ace2ae0de
4 changed files with 25 additions and 4 deletions

View File

@@ -236,7 +236,11 @@ const backHandler = (url: string) => {
dvMainStore.canvasStateChange({ key: 'curPointArea', value: 'base' })
wsCache.delete('DE-DV-CATCH-' + dvInfo.value.id)
wsCache.set('dv-info-id', dvInfo.value.id)
history.back()
if (!!history.state.back) {
history.back()
} else {
window.open(url, '_self')
}
}
const openHandler = ref(null)