fix(登录页): 使用ensureDecodeURIComponent处理重定向URL
确保重定向URL被正确解码,避免特殊字符导致的问题
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user