谢杰标 il y a 2 ans
Parent
commit
44daa4922e
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      components/course/handoutsTree.vue

+ 4 - 4
components/course/handoutsTree.vue

@@ -83,10 +83,10 @@ export default {
     openDocument() {
       let url = this.$method.splitImgHost(this.fileInfo.url);
       // #ifdef H5
-      window.location.href = url;
-      //   uni.navigateTo({
-      //     url: `/pages/webview/sdlink?url=` + url,
-      //   });
+      // window.location.href = url;
+      uni.navigateTo({
+        url: `/pages/webview/sdlink?url=http://192.168.1.57:8080/?src=https%3A%2F%2Ffile-dev.xyyxt.net%2Foss%2Fimages%2F16825677098141789605970.pdf`,
+      });
       // #endif
       // #ifdef MP-WEIXIN
       this.downLoading = true;