feat: update routing to navigate to chat with access token after OAuth2 callback

v3.2
wxg0103 2025-10-21 09:25:33 +08:00
parent 39aaee8e02
commit 674cd614eb
1 changed files with 5 additions and 0 deletions

View File

@ -437,6 +437,11 @@ onBeforeMount(() => {
dd.runtime.permission.requestAuthCode({corpId: code}).then((res) => {
console.log('DingTalk client request success:', res)
chatUser.dingOauth2Callback(res.code, accessToken).then(() => {
router.push({
name: 'chat',
params: {accessToken: accessToken},
query: route.query,
})
})
})
}