mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
内网环境判断
This commit is contained in:
@@ -1386,7 +1386,7 @@
|
||||
this.totalContent = rs.result.contents.length;
|
||||
//加载学习的数据
|
||||
this.loadStudyData(rs.result);
|
||||
if (rs.result.course.isPermission){
|
||||
if (rs.result.isPermission){
|
||||
this.getInternet()
|
||||
console.log('需要内网环境')
|
||||
}
|
||||
@@ -1395,6 +1395,14 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
getXmlHttpRequest() {
|
||||
if (window.XMLHttpRequest) {
|
||||
return new XMLHttpRequest();
|
||||
}
|
||||
else if (window.ActiveXObject) {
|
||||
return new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
},
|
||||
// 检测是否为内网
|
||||
getInternet() {
|
||||
this.Internet = 3;
|
||||
|
||||
Reference in New Issue
Block a user