Преглед изворни кода

feat: 处理特殊情况PDF文件显示黑影的问题

332777428@qq.com пре 2 месеци
родитељ
комит
646b99afc8
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/pages/explain/index.vue

+ 2 - 2
src/pages/explain/index.vue

@@ -69,7 +69,7 @@ export default {
       currentPage: 1,
       numPages: 0,
       scale: 1,
-      loadedPages: 1,
+      loadedPages: 0,
 
       isLoading: false,
       text: "拼命加载中...",
@@ -140,9 +140,9 @@ export default {
         that.numPages = numPages;
         that.fileUrl = fileUrl;
         // await that.sleep(600);
-        // that.isLoading = false;
         that.loadAll = true;
         that.loadedPages = numPages;
+        // that.isLoading = false;
         // await that.sleep(2000);
         // that.isLoading = false;
       } catch (e) {