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