fix: Application List - Open in More Actions to go to the chat, page returns 404 (#4445)

This commit is contained in:
shaohuzhang1 2025-12-05 14:48:13 +08:00 committed by GitHub
parent 4c4d8dd05d
commit 5cfd88e64d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,9 +563,7 @@ function toChat(row: any) {
aips = aips ? aips : []
const apiParams = mapToUrlParams(aips) ? '?' + mapToUrlParams(aips) : ''
ApplicationApi.getAccessToken(row.id, loading).then((res: any) => {
const newUrl = router.resolve({
path: application.location + res?.data?.access_token + apiParams,
}).href
const newUrl = application.location + res?.data?.access_token + apiParams
window.open(newUrl)
})
})