@@ -65,17 +65,16 @@ export const initJumpNativePage = (url: string) => {
if (browser().ios) {
window.location.replace(url)
} else {
- // postMessage({
- // api: 'openWebView',
- // content: {
- // url,
- // orientation: 1,
- // isHideTitle: false
- // }
- // })
+ postMessage({
+ api: 'openWebView',
+ content: {
+ url,
+ orientation: 1,
+ isHideTitle: false
+ }
+ })
- // postMessage({ api: 'back' })
- window.location.replace(url)
+ postMessage({ api: 'back' })
}
return
} else if (state.platformType === 'TEACHER') {