|
@@ -204,17 +204,17 @@ export default defineComponent({
|
|
//授权
|
|
//授权
|
|
const code = getUrlCode()
|
|
const code = getUrlCode()
|
|
if (!code) {
|
|
if (!code) {
|
|
- const { returnUrl, ...rest } = route.query
|
|
|
|
const newUrl =
|
|
const newUrl =
|
|
window.location.origin +
|
|
window.location.origin +
|
|
window.location.pathname +
|
|
window.location.pathname +
|
|
'#' +
|
|
'#' +
|
|
- returnUrl +
|
|
|
|
|
|
+ route.path +
|
|
'?' +
|
|
'?' +
|
|
qs.stringify({
|
|
qs.stringify({
|
|
- ...rest
|
|
|
|
|
|
+ ...route.query
|
|
})
|
|
})
|
|
getAppIdAndCode(newUrl)
|
|
getAppIdAndCode(newUrl)
|
|
|
|
+ return
|
|
} else {
|
|
} else {
|
|
state.code = code
|
|
state.code = code
|
|
}
|
|
}
|