mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
外链添加接口
This commit is contained in:
@@ -118,8 +118,9 @@ const goOuterChain = async (url) => {
|
||||
// });
|
||||
if(url.includes('umu.cn')){
|
||||
await request(LEARN, {url,userId:userInfo.value.userId}).then(res=>{
|
||||
console.log(res,'res')
|
||||
if(res.code == 200){
|
||||
window.open(res.data)
|
||||
window.open(res.data, "_top")
|
||||
}
|
||||
})
|
||||
return
|
||||
@@ -127,7 +128,7 @@ const goOuterChain = async (url) => {
|
||||
if(url.includes('firacademy.com')){
|
||||
await request(NOLOGINURL, {url,userId:userInfo.value.userId}).then(res=>{
|
||||
if(res.code == 200){
|
||||
window.open(res.data)
|
||||
window.open(res.data, "_top")
|
||||
}
|
||||
})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user