update
1.修改跳转安眼逻辑
This commit is contained in:
+13
-2
@@ -245,11 +245,22 @@
|
||||
queryAnYanTokenApi()
|
||||
.then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
otherLoading.value = false;
|
||||
window.open('http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=' + res?.result, '_blank');
|
||||
// res.result = {
|
||||
// scope: 'default',
|
||||
// expires_in: 3348,
|
||||
// token_type: 'bearer',
|
||||
// access_token: '2a643081-b661-4f44-bc36-6bc91addde3a',
|
||||
// refresh_token: 'e0a91714-59aa-4311-bb6c-ca3a48f20dd1',
|
||||
// satoken: '9a493672-36e0-4539-9a74-650e95cefc87',
|
||||
// };
|
||||
window.open(
|
||||
`http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=${res?.result?.access_token}&expires_in=${res?.result?.expires_in}&refresh_token=${res?.result?.refresh_token}&satoken=${res?.result?.satoken}`,
|
||||
'_blank'
|
||||
);
|
||||
} else {
|
||||
message.error(res?.message);
|
||||
}
|
||||
otherLoading.value = false;
|
||||
})
|
||||
.catch((err) => {
|
||||
otherLoading.value = false;
|
||||
|
||||
Reference in New Issue
Block a user