Merge pull request #11829 from dataease/pr@dev-v2@refactor_jump-event

refactor(仪表板、数据大屏): 增加调整事件控制台异常提示
This commit is contained in:
王嘉豪 2024-08-29 09:54:08 +08:00 committed by GitHub
commit cc2a0b4103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,7 +249,11 @@ const onWrapperClick = e => {
dvMainStore.popAreaActiveSwitch()
})
} else if (config.value.events.type === 'jump') {
window.open(config.value.events.jump.value, '_blank')
try {
window.open(config.value.events.jump.value, '_blank')
} catch (e) {
console.info('Something wrong when try to jump: ' + config.value.events?.jump?.value)
}
} else if (config.value.events.type === 'refreshDataV') {
useEmitt().emitter.emit('componentRefresh')
}