feat: 采用 location.href 的方式进行跳转

This commit is contained in:
joshen
2025-08-22 16:32:21 +08:00
parent cc9f98b932
commit fe0c535500

View File

@@ -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}${