Sfoglia il codice sorgente

屏蔽预览,打开debug

aaa 3 anni fa
parent
commit
1b4872e43c
2 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. 1 1
      public/index.html
  2. 9 9
      src/views/home/learn/page-learn-content.vue

+ 1 - 1
public/index.html

@@ -47,5 +47,5 @@ c.dr=ye(s),i?c.fs=de(r,s,c.fp,c):c.__fs=0;var f="",l=be(),d=_(u,c)||{};l&&o(l,fu
 <script src="./app-jssdk.umd.min.js"></script>
 <script src="//cdn.jsdelivr.net/npm/eruda"></script>
 <!-- 页面debug工具 -->
-<!-- <script>eruda.init();</script> -->
+<script>eruda.init();</script>
 </html>

+ 9 - 9
src/views/home/learn/page-learn-content.vue

@@ -532,15 +532,15 @@ export default {
       return img;
     },
     previewFile(url) {
-      let strArr = url.split(".");
-      let type = strArr[strArr.length - 1];
-      lx.utils.previewFile({
-        url: url,
-        name: "",
-        size: 1000,
-        type: type,
-        moreHidden: false
-      });
+    //   let strArr = url.split(".");
+    //   let type = strArr[strArr.length - 1];
+    //   lx.utils.previewFile({
+    //     url: url,
+    //     name: "",
+    //     size: 1000,
+    //     type: type,
+    //     moreHidden: false
+    //   });
     }
   }
 };