From 8e46ffb65a725feefb432ccdbc855b5d5db48750 Mon Sep 17 00:00:00 2001 From: sunli_tydic Date: Thu, 11 Dec 2025 11:11:03 +0800 Subject: [PATCH] =?UTF-8?q?ai=E8=A7=86=E9=A2=91=E4=B8=80=E6=9C=9F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8F=90=E4=BA=A4-=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9;=E5=AD=97=E5=B9=95=E6=B2=A1=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E5=AE=8C=E8=A7=86=E9=A2=91=E7=BB=84=E4=BB=B6=E4=B8=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=AD=97=E5=B9=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VideoPlayer/index.vue | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index acffde3a..d802b803 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -339,7 +339,7 @@ export default { computed: { ...mapGetters(['selectableLang','currentLang','courseInfo']), isAiTranslate () { - return this.courseInfo?.aiSet == 1 && this.courseInfo?.aiTranslate == 1; + return this.courseInfo?.aiSet == 1 && this.courseInfo?.aiTranslate == 1 && this.selectableLang && this.selectableLang.length > 0; } }, created() { @@ -1073,24 +1073,21 @@ export default { } } video::cue { - color: #fff; - background-color: transparent; - font-size: 0.85em; - font-family: 'Arial', sans-serif; - /* 1. WebKit内核粗描边(Chrome/Safari/Edge) */ - -webkit-text-stroke: 4px #000; /* 宽度调至4px(可继续加大,如6px/8px) */ - text-stroke: 4px #000; /* 标准属性兜底 */ + /* color: #fff; */ + /* background-color: transparent; */ + /* font-size: 0.85em; */ + /* font-family: 'Arial', sans-serif; + -webkit-text-stroke: 4px #000; + text-stroke: 4px #000; */ - /* 2. 多重阴影模拟粗描边(核心:增加偏移量+多层叠加) */ - text-shadow: + /* text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, - /* 追加外层阴影,让描边更厚 */ 0 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, - -2px 0 0 #000; + -2px 0 0 #000; */ }