feat: remove URI encoding for redirect URI in wecomQrCode component

This commit is contained in:
wxg0103 2025-10-10 17:33:03 +08:00
parent 336a4dd1a6
commit f5a7cdd010
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ const init = async () => {
agentId: props.config.agent_id
}
const lang = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
const redirectUri = encodeURIComponent(window.location.origin)
const redirectUri = window.location.origin
try {
wwLogin.value = ww.createWWLoginPanel({
el: '#wecom-qr',

View File

@ -37,7 +37,7 @@ const init = async () => {
agentId: props.config.agent_id
}
const lang = localStorage.getItem('MaxKB-locale') || getBrowserLang() || 'en-US'
const redirectUri = encodeURIComponent(window.location.origin)
const redirectUri = window.location.origin
console.log('redirectUri', redirectUri)
try {
wwLogin.value = ww.createWWLoginPanel({