From 443a96373c97582776520581a80df121ad05df65 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期六, 19 七月 2025 11:12:35 +0800 Subject: [PATCH] 优化 --- src/books/preschoolEvaluation/view/components/index.vue | 22 +++++++--------------- 1 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/books/preschoolEvaluation/view/components/index.vue b/src/books/preschoolEvaluation/view/components/index.vue index 708ff8d..2a3f685 100644 --- a/src/books/preschoolEvaluation/view/components/index.vue +++ b/src/books/preschoolEvaluation/view/components/index.vue @@ -23,6 +23,7 @@ </template> <script> +import Vue from "vue"; import pageHeader from "./header.vue"; import chapterOne from "./chapter001.vue"; import chapterTwo from "./chapter002.vue"; @@ -172,20 +173,7 @@ // 娴嬭瘯椤甸潰璺宠浆 setTimeout(() => { - this.gotoPage(11, 290); - // setTimeout(() => { - // this.renderSign("Highlight", { - // id: "2ACA9359", - // txt: "棰樹竴瀛︿範涓婚涓� 杩愬姩", - // page: "10", - // type: "Highlight", - // color: "#F5E12A" - // }); - // setTimeout(() => { - // this.delSign({ - // ids: ["2ACA9359"] - // }); - // }, 2000); + this.gotoPage(1, 1); }, 500); // const pageDom = (this.container ? this.container : document) @@ -935,7 +923,11 @@ const topGap = playVudio.getBoundingClientRect().top; if (bottomGap < 0 || topGap > window.innerHeight) { try { - if (playVudio.readyState) playVudio.requestPictureInPicture(); + if (playVudio.readyState) { + setTimeout(()=>{ + playVudio.requestPictureInPicture(); + },0) + } } catch (error) { console.log(error, "灏忕獥閿欒error"); } -- Gitblit v1.9.1