Browse Source

更新跳转问题

lex 2 năm trước cách đây
mục cha
commit
6658dbf275

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index-legacy.04a10597.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index-legacy.1116b71a.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index-legacy.1a7cf495.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index.2b97a099.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index.5283e3ae.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index.5721d87d.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index.80bb6e24.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index.8df6f859.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/index.b3489586.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/teacher-legacy.744462fe.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/assets/teacher.941a38e6.js


+ 0 - 0
dist/assets/index.5062a520.css → dist/assets/teacher.a6c9550a.css


+ 2 - 2
dist/index.html

@@ -38,9 +38,9 @@
     <script type="module" crossorigin src="./assets/index.2d9a1717.js"></script>
     <link rel="modulepreload" href="./assets/vendor.7fdfd452.js">
     <link rel="modulepreload" href="./assets/index.5a60ef99.js">
-    <link rel="stylesheet" href="./assets/vendor.68261ebd.css">
     <link rel="stylesheet" href="./assets/index.cb2212cc.css">
-    <link rel="stylesheet" href="./assets/index.5062a520.css">
+    <link rel="stylesheet" href="./assets/vendor.68261ebd.css">
+    <link rel="stylesheet" href="./assets/teacher.a6c9550a.css">
     <script type="module">!function(){try{new Function("m","return import(m)")}catch(o){console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}}();</script>
   </head>
 

+ 4 - 4
dist/teacher.html

@@ -35,12 +35,12 @@
     <meta name="msapplication-tap-highlight" content="no" />
     <title>酷乐秀</title>
     <script src="./flexible.js" charset="UTF-8"></script>
-    <script type="module" crossorigin src="./assets/teacher.0435a24c.js"></script>
+    <script type="module" crossorigin src="./assets/teacher.941a38e6.js"></script>
     <link rel="modulepreload" href="./assets/vendor.7fdfd452.js">
     <link rel="modulepreload" href="./assets/index.5a60ef99.js">
-    <link rel="stylesheet" href="./assets/index.cb2212cc.css">
     <link rel="stylesheet" href="./assets/vendor.68261ebd.css">
-    <link rel="stylesheet" href="./assets/index.5062a520.css">
+    <link rel="stylesheet" href="./assets/index.cb2212cc.css">
+    <link rel="stylesheet" href="./assets/teacher.a6c9550a.css">
     <script type="module">!function(){try{new Function("m","return import(m)")}catch(o){console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}}();</script>
   </head>
 
@@ -49,6 +49,6 @@
     
     <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
     <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.11b78793.js"></script>
-    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.cc24cc5d.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.744462fe.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 16 - 1
src/teacher/share-page/share-live/index.tsx

@@ -82,7 +82,13 @@ export default defineComponent({
       if (browser().isApp) {
         if (state.platformType === 'STUDENT') {
           // 自动跳转到学生端视频课详情购买页
-          window.location.replace(
+          // window.location.replace(
+          // `${location.origin}/student/#/liveDetail??${qs.stringify(
+          //   this.$route.query
+          // )}`
+          // )
+
+          this.locationReplace(
             `${location.origin}/student/#/liveDetail??${qs.stringify(
               this.$route.query
             )}`
@@ -113,6 +119,15 @@ export default defineComponent({
     }
   },
   methods: {
+    locationReplace(url: string) {
+      // alert(url)
+      if (history.replaceState) {
+        history.replaceState(null, document.title, url)
+        window.location.reload()
+      } else {
+        location.replace(url)
+      }
+    },
     reCall() {
       const { origin } = location
       let str = origin + '/student/#/liveDetail'

+ 13 - 1
src/teacher/share-page/share-mall/index.tsx

@@ -60,7 +60,10 @@ export default defineComponent({
           query
         )
         // 自动跳转到学生端商品详情
-        window.location.replace(
+        // window.location.replace(
+        //   `${location.origin}/student/#/goodsDetail?${qs.stringify(params)}`
+        // )
+        this.locationReplace(
           `${location.origin}/student/#/goodsDetail?${qs.stringify(params)}`
         )
       } else if (state.platformType === 'TEACHER') {
@@ -81,6 +84,15 @@ export default defineComponent({
     }
   },
   methods: {
+    locationReplace(url: string) {
+      // alert(url)
+      if (history.replaceState) {
+        history.replaceState(null, document.title, url)
+        window.location.reload()
+      } else {
+        location.replace(url)
+      }
+    },
     async getProduct() {
       this.loading = true
       let product = {} as any

+ 4 - 2
src/teacher/share-page/share-video/index.tsx

@@ -48,12 +48,13 @@ export default defineComponent({
           //     this.$route.query
           //   )}`
           // )
-
+          // 为了处理andoird webview的跳转问题
           this.locationReplace(
             `${location.origin}/student/#/videoDetail?${qs.stringify(
               this.$route.query
             )}`
           )
+          return
         } else if (state.platformType === 'TEACHER') {
           Dialog.alert({
             title: '提示',
@@ -94,9 +95,10 @@ export default defineComponent({
   },
   methods: {
     locationReplace(url: string) {
+      // alert(url)
       if (history.replaceState) {
         history.replaceState(null, document.title, url)
-        history.go(0)
+        window.location.reload()
       } else {
         location.replace(url)
       }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác