litian
4 天以前 bc1f3bb645daafa84b3a5e70a2331e40137de885
src/books/artAndDance/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";
@@ -922,7 +923,7 @@
        const bottomGap = playVudio.getBoundingClientRect().bottom;
        const topGap = playVudio.getBoundingClientRect().top;
        if (bottomGap < 0 || topGap > window.innerHeight) {
          playVudio.requestPictureInPicture();
          if(playVudio.readyState) playVudio.requestPictureInPicture();
        }
      }
    }