外链添加接口

This commit is contained in:
zhangsir
2024-06-28 12:49:44 +08:00
parent 54821e1101
commit ad270b43e8

View File

@@ -118,8 +118,9 @@ const goOuterChain = async (url) => {
// }); // });
if(url.includes('umu.cn')){ if(url.includes('umu.cn')){
await request(LEARN, {url,userId:userInfo.value.userId}).then(res=>{ await request(LEARN, {url,userId:userInfo.value.userId}).then(res=>{
console.log(res,'res')
if(res.code == 200){ if(res.code == 200){
window.open(res.data) window.open(res.data, "_top")
} }
}) })
return return
@@ -127,7 +128,7 @@ const goOuterChain = async (url) => {
if(url.includes('firacademy.com')){ if(url.includes('firacademy.com')){
await request(NOLOGINURL, {url,userId:userInfo.value.userId}).then(res=>{ await request(NOLOGINURL, {url,userId:userInfo.value.userId}).then(res=>{
if(res.code == 200){ if(res.code == 200){
window.open(res.data) window.open(res.data, "_top")
} }
}) })
return return