Skip to content

Commit 446a450

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/login/scanCompinents/wecomQrCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const init = async () => {
3737
agentId: props.config.agent_id
3838
}
3939
const lang = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
40-
const redirectUri = window.location.origin
40+
const redirectUri = encodeURIComponent(window.location.origin)
4141
console.log('redirectUri', redirectUri)
4242
try {
4343
wwLogin.value = ww.createWWLoginPanel({

0 commit comments

Comments
 (0)