Sfoglia il codice sorgente

feat: 处理特殊情况PDF文件显示不出来的问题

332777428@qq.com 2 mesi fa
parent
commit
008b542aca
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      src/pages/explain/index.vue

+ 5 - 4
src/pages/explain/index.vue

@@ -71,7 +71,7 @@ export default {
       scale: 1,
       loadedPages: 1,
 
-      isLoading: true,
+      isLoading: false,
       text: "拼命加载中...",
       zIndex: 9999,
     };
@@ -139,11 +139,12 @@ export default {
 
         that.numPages = numPages;
         that.fileUrl = fileUrl;
-        await that.sleep(500);
+        // await that.sleep(600);
+        // that.isLoading = false;
         that.loadAll = true;
         that.loadedPages = numPages;
-        await that.sleep(2000);
-        that.isLoading = false;
+        // await that.sleep(2000);
+        // that.isLoading = false;
       } catch (e) {
         console.error("PDF加载失败:", e);
       }