fix: Application List - Hold down Ctrl+to set the new window opened to still be the application list page (#4451)

This commit is contained in:
shaohuzhang1 2025-12-05 18:37:08 +08:00 committed by GitHub
parent 8874988022
commit 36f4dfbc36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -568,7 +568,10 @@ function settingApplication(event: any, row: any) {
if (event?.ctrlKey) {
event?.preventDefault()
event.stopPropagation()
window.open(`/application/workspace/${row.id}/workflow`, '_blank')
const newUrl = router.resolve({
path: `/application/workspace/${row.id}/workflow`,
}).href
window.open(newUrl)
} else {
router.push({ path: `/application/workspace/${row.id}/workflow` })
}