|
@@ -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);
|
|
|
}
|