ai视频一期功能提交-样式修改;字幕没翻译完视频组件不展示字幕信息

This commit is contained in:
sunli_tydic
2025-12-11 11:11:03 +08:00
parent cbb36b429b
commit 8e46ffb65a

View File

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