|
@@ -27,9 +27,11 @@ export default defineComponent({
|
|
|
str += params.url
|
|
|
str = encodeURIComponent(str)
|
|
|
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
|
|
- window.location.href = `StudentsColexiu://linkUrl=${str}`
|
|
|
+ // ColexiuStudent 唤起学生端
|
|
|
+ // ColexiuTeacher 唤起老师端
|
|
|
+ window.location.href = `ColexiuStudent://linkUrl=${str}`
|
|
|
} else if (/(Android)/i.test(navigator.userAgent)) {
|
|
|
- window.location.href = `StudentsColexiu://html:8888/SplashActivity?url=${str}`
|
|
|
+ window.location.href = `ColexiuStudent://html:8888/SplashActivity?url=${str}`
|
|
|
} else {
|
|
|
Toast('请用手机或移动设备打开')
|
|
|
}
|