From 86fdf7285657727a3f893496fd54c65e7788c51b Mon Sep 17 00:00:00 2001
From: koisi <kor.coeo@gmail.com>
Date: 星期一, 05 八月 2024 15:40:24 +0800
Subject: [PATCH]  修复语法错误导致的前端编译异常

---
 web_src/src/components/common/jessibuca.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/web_src/src/components/common/jessibuca.vue b/web_src/src/components/common/jessibuca.vue
index afd4222..4ea732c 100755
--- a/web_src/src/components/common/jessibuca.vue
+++ b/web_src/src/components/common/jessibuca.vue
@@ -1,6 +1,7 @@
 <template>
   <div ref="container" @dblclick="fullscreenSwich"
        style="width:100%; height: 100%; background-color: #000000;margin:0 auto;position: relative;">
+    <div style="width:100%; padding-top: 56.25%; position: relative;"></div>
     <div class="buttons-box" id="buttonsBox">
       <div class="buttons-box-left">
         <i v-if="!playing" class="iconfont icon-play jessibuca-btn" @click="playBtnClick"></i>
@@ -66,6 +67,9 @@
   //   });
   //   ro.observe(this.$refs.container);
   // },
+  mounted(){
+    this.updatePlayerDomSize();
+  },
   watch: {
     videoUrl: {
       handler(val, _) {
@@ -91,6 +95,7 @@
       if (width > 0 && height > 0) {
         dom.style.width = width + 'px';
         dom.style.height = height + "px";
+        dom.style.paddingTop = 0;
         console.log(width)
         console.log(height)
       }

--
Gitblit v1.8.0