Browse Source

Update share.ts

lex 9 tháng trước cách đây
mục cha
commit
50e2a51c51
1 tập tin đã thay đổi với 9 bổ sung10 xóa
  1. 9 10
      src/teacher/share-page/share.ts

+ 9 - 10
src/teacher/share-page/share.ts

@@ -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') {