mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +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) {
|
||||
window.open(
|
||||
`${location.protocol}//${location.host}${
|
||||
|
||||
Reference in New Issue
Block a user