fix: 修改回调地址
This commit is contained in:
parent
3b25ac8d14
commit
7cfd43f1e0
13
index.html
13
index.html
|
@ -407,18 +407,7 @@
|
|||
// 判断是否需要静默授权
|
||||
if (form_data_res.data.is_have_webview_voucher) {
|
||||
|
||||
axios({
|
||||
method: 'get',
|
||||
url: `https://test.openapi.1688sup.com/wechat/oauth?jump=${location.origin}`,
|
||||
})
|
||||
.then(response => {
|
||||
const locationHeader = response.headers['location'];
|
||||
if (locationHeader) {
|
||||
console.log('Location header:', locationHeader);
|
||||
} else {
|
||||
console.log('Location header not found in the response');
|
||||
}
|
||||
});
|
||||
location.href = `https://test.openapi.1688sup.com/wechat/oauth?jump=${location.origin}/homepage.html`
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue