Skip to content

Commit 674cd61

Browse files
committed
feat: update routing to navigate to chat with access token after OAuth2 callback
1 parent 39aaee8 commit 674cd61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/src/views/chat/user-login/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,11 @@ onBeforeMount(() => {
437437
dd.runtime.permission.requestAuthCode({corpId: code}).then((res) => {
438438
console.log('DingTalk client request success:', res)
439439
chatUser.dingOauth2Callback(res.code, accessToken).then(() => {
440+
router.push({
441+
name: 'chat',
442+
params: {accessToken: accessToken},
443+
query: route.query,
444+
})
440445
})
441446
})
442447
}

0 commit comments

Comments
 (0)