From 42a2772d1aa7493bcc4fac3e24ee8eda4eebc23d Mon Sep 17 00:00:00 2001 From: xubinbin <1323875150@qq.com> Date: 星期二, 12 十二月 2023 17:09:04 +0800 Subject: [PATCH] bugfix:请求头带token, SecurityUtils 获取用户id 一直为0 #1195 --- web_src/src/components/common/jessibuca.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/web_src/src/components/common/jessibuca.vue b/web_src/src/components/common/jessibuca.vue index bdb5793..5b48da4 100755 --- a/web_src/src/components/common/jessibuca.vue +++ b/web_src/src/components/common/jessibuca.vue @@ -1,6 +1,6 @@ <template> <div ref="container" @dblclick="fullscreenSwich" - style="width:100%;height:100%;background-color: #000000;margin:0 auto;"> + style="width:100%;height:100%;background-color: #000000;margin:0 auto;position: relative;"> <div class="buttons-box" id="buttonsBox"> <div class="buttons-box-left"> <i v-if="!playing" class="iconfont icon-play jessibuca-btn" @click="playBtnClick"></i> @@ -60,8 +60,13 @@ }) }, watch: { - videoUrl(val, _) { - this.play(val); + videoUrl: { + handler(val, _) { + this.$nextTick(() => { + this.play(val); + }) + }, + immediate: true } }, methods: { -- Gitblit v1.8.0