mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-08 02:16:47 +08:00
feat: 采用 location.href 的方式进行跳转
This commit is contained in:
@@ -822,6 +822,19 @@ function toFinish(d, sName, chapterOrStageId, studyModel) {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isIOS() {
|
||||||
|
return [
|
||||||
|
'iPad Simulator',
|
||||||
|
'iPhone Simulator',
|
||||||
|
'iPod Simulator',
|
||||||
|
'iPad',
|
||||||
|
'iPhone',
|
||||||
|
'iPod'
|
||||||
|
].includes(navigator.platform) ||
|
||||||
|
// iPad on iOS 13 detection
|
||||||
|
(navigator.userAgent.includes("Mac") && "ontouchend" in document);
|
||||||
|
}
|
||||||
|
|
||||||
function toOffcoursePlanPage(id) {
|
function toOffcoursePlanPage(id) {
|
||||||
window.open(
|
window.open(
|
||||||
`${location.protocol}//${location.host}${
|
`${location.protocol}//${location.host}${
|
||||||
|
|||||||
Reference in New Issue
Block a user