skyblued пре 2 година
родитељ
комит
65f91b2e16
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 1 2
      src/views/courseList/index.tsx
  2. 3 2
      src/views/coursewarePlay/index.tsx

+ 1 - 2
src/views/courseList/index.tsx

@@ -69,7 +69,7 @@ export default defineComponent({
         return
       }
       if (!item.hasCache) {
-        if (browserInfo.isStudent || /(192|localhost)/.test(location.origin)) {
+        if (browserInfo.isStudent || route.query.isdev) {
           try {
             await showConfirmDialog({
               message: '当前课程没有缓存是否缓存'
@@ -79,7 +79,6 @@ export default defineComponent({
             return
           }
         }
-        item.downloadStatus = 1
         downCatch(item)
         return
       }

+ 3 - 2
src/views/coursewarePlay/index.tsx

@@ -206,8 +206,9 @@ export default defineComponent({
     })
     // 返回
     const goback = () => {
-      // history.go(-1)
-      postMessage({ api: 'back' })
+      history.go(-1)
+
+      // postMessage({ api: 'back' })
     }
 
     const swipeRef = ref()