|
@@ -46,11 +46,10 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
url = encodeURIComponent(url);
|
|
url = encodeURIComponent(url);
|
|
- // console.log(url)
|
|
|
|
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
window.location.href = `StudentsExam://linkUrl=${url}`;
|
|
window.location.href = `StudentsExam://linkUrl=${url}`;
|
|
} else if (/(Android)/i.test(navigator.userAgent)) {
|
|
} else if (/(Android)/i.test(navigator.userAgent)) {
|
|
- window.location.href = `student_exam://html:8888/SplashActivity?url=${url}`;
|
|
|
|
|
|
+ window.location.href = `studentexam://html:8888/SplashActivity?url=${url}`;
|
|
} else {
|
|
} else {
|
|
this.$toast("请用手机或移动设备打开");
|
|
this.$toast("请用手机或移动设备打开");
|
|
}
|
|
}
|