uptada BaiDuYun
This commit is contained in:
parent
26f6b96971
commit
16e9c78690
@ -35,9 +35,11 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
const response = await baiducloudAPI();
|
const response = await baiducloudAPI();
|
||||||
this.userToken = response.data;
|
this.userToken = response.data;
|
||||||
|
let resultUrlLast = 'https://console.vcp.baidu.com/api/loginvcp/login/securitytoken?'
|
||||||
if (this.userToken) {
|
if (this.userToken) {
|
||||||
// 构建最终的 URL
|
// 构建最终的 URL
|
||||||
this.url = `https://console.vcp.baidu.com/api/loginvcp/login/securitytoken?redirectUrl=${(localStorage.getItem('redirectUrl'))}&signinSecurityToken=${encodeURIComponent(this.userToken)}`;
|
resultUrlLast = resultUrlLast + '&redirectUrl=' + encodeURIComponent(localStorage.getItem('redirectUrl')) + '&signinSecurityToken=' + encodeURIComponent(this.userToken)
|
||||||
|
this.url = resultUrlLast
|
||||||
} else {
|
} else {
|
||||||
console.error('未能从API响应中获取到token:', response);
|
console.error('未能从API响应中获取到token:', response);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user