fix(登录页): 使用ensureDecodeURIComponent处理重定向URL

确保重定向URL被正确解码,避免特殊字符导致的问题
This commit is contained in:
feige996
2025-08-21 10:08:55 +08:00
parent 7a853b0ce8
commit fc14810fcf

View File

@@ -11,11 +11,12 @@
import { useUserStore } from '@/store/user'
import { tabbarList } from '@/tabbar/config'
import { isPageTabbar } from '@/tabbar/store'
import { ensureDecodeURIComponent } from '@/utils'
const redirectUrl = ref('')
onLoad((options) => {
console.log('login options', options)
redirectUrl.value = options.redirect || tabbarList[0].pagePath
redirectUrl.value = ensureDecodeURIComponent(options.redirect) || tabbarList[0].pagePath
})
const userStore = useUserStore()
function doLogin() {