|
|
@@ -24,8 +24,7 @@ onMounted(() => {
|
|
|
let ticket = getUrlParam(window.parent.location.href, 'ticket')
|
|
|
let userid = getUrlParam(window.parent.location.href, 'userid')
|
|
|
axios.defaults.headers = { 'content-type': 'application/json;charset=utf-8' }
|
|
|
- // 获取gotype传参
|
|
|
- pageType2()
|
|
|
+
|
|
|
if (isGrantCode) {
|
|
|
let params = {
|
|
|
grantCode: isGrantCode,
|
|
|
@@ -66,6 +65,8 @@ onMounted(() => {
|
|
|
} else {
|
|
|
linkLogin()
|
|
|
}
|
|
|
+ // 获取gotype传参
|
|
|
+ pageType2()
|
|
|
})
|
|
|
|
|
|
const linkLogin = () => {
|
|
|
@@ -78,9 +79,13 @@ const linkLogin = () => {
|
|
|
}
|
|
|
|
|
|
const pageType2 = () => {
|
|
|
- const val = route.query.gotype ? route.query.gotype :''
|
|
|
- console.log('gotype',val);
|
|
|
- setgotype.setpageType(val);
|
|
|
+ // const val = route.query.gotype ? route.query.gotype :''
|
|
|
+ console.log('window.location.search',window.location.search);
|
|
|
+ const urlParams = new URLSearchParams(window.location.search);
|
|
|
+ const gotype = urlParams.get('gotype');
|
|
|
+
|
|
|
+ console.log('gotype',gotype);
|
|
|
+ setgotype.setpageType(gotype);
|
|
|
}
|
|
|
|
|
|
// 同步登录信息
|