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; */ }