|
@@ -25,7 +25,8 @@ import {outlinkConfigInterence} from "@/api/modules/etaBaseConfigApi.js"
|
|
|
data() {
|
|
|
return {
|
|
|
outlinkData:[],
|
|
|
- colors:['#E3EAFD','#FBEBD5','#DEF4D8','#DEF2FC']
|
|
|
+ colors:['#E3EAFD','#FBEBD5','#DEF4D8','#DEF2FC'],
|
|
|
+ authCode:'',//认证code
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -36,6 +37,7 @@ import {outlinkConfigInterence} from "@/api/modules/etaBaseConfigApi.js"
|
|
|
outlinkConfigInterence.getOutlinkListAll().then(res=>{
|
|
|
if(res.Ret == 200){
|
|
|
this.outlinkData = res.Data.List || []
|
|
|
+ this.authCode=res.Data.UserCode
|
|
|
// console.log(this.outlinkData);
|
|
|
//ETA1.0.8 在数组开头增加一项培训视频链接
|
|
|
this.outlinkData.unshift({
|
|
@@ -52,6 +54,13 @@ import {outlinkConfigInterence} from "@/api/modules/etaBaseConfigApi.js"
|
|
|
item.Url.startsWith("ftps://") || item.Url.startsWith("file://") || item.Url.startsWith("\/"))){
|
|
|
Url = "http://"+item.Url
|
|
|
}
|
|
|
+ // 拼接认证code
|
|
|
+ if(Url.includes('?')){
|
|
|
+ Url=Url+'&authCode='+encodeURIComponent(this.authCode)
|
|
|
+ }else{
|
|
|
+ Url=Url+'?authCode='+encodeURIComponent(this.authCode)
|
|
|
+ }
|
|
|
+
|
|
|
// console.log(Url);
|
|
|
window.open(Url, '_blank')
|
|
|
}
|