Skip to content

Commit a5c2c6e

Browse files
committed
feat: encode redirect URI in wecomQrCode component for improved URL handling
1 parent 446a450 commit a5c2c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/chat/user-login/scanCompinents/wecomQrCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const init = async () => {
4141
agentId: props.config.agent_id
4242
}
4343
const lang = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
44-
const redirectUri = window.location.origin
44+
const redirectUri = encodeURIComponent(window.location.origin)
4545
try {
4646
wwLogin.value = ww.createWWLoginPanel({
4747
el: '#wecom-qr',

0 commit comments

Comments
 (0)