mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
ai视频一期功能提交
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
</div>
|
||||
<!-- ai播放器相关 -->
|
||||
<div class="player-controls-bottom-right">
|
||||
<div class="player-controls-btn box-aiTranslate">
|
||||
<div v-if="isAiTranslate" class="player-controls-btn box-aiTranslate">
|
||||
<div v-show="isSubtitle" class="player-controls-btn cursor-pointer btn-speed">
|
||||
<span>{{!currentLang ? 'AI翻译' : currentLangLabel}}</span>
|
||||
<div class="speed-control">
|
||||
@@ -337,13 +337,17 @@ export default {
|
||||
},
|
||||
// ai播放器相关
|
||||
computed: {
|
||||
...mapGetters(['selectableLang','currentLang'])
|
||||
...mapGetters(['selectableLang','currentLang','courseInfo']),
|
||||
isAiTranslate () {
|
||||
return this.courseInfo?.aiSet == 1 && this.courseInfo?.aiTranslate == 1;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// ai播放器相关
|
||||
this.SET_currentLang('');
|
||||
},
|
||||
mounted() {
|
||||
console.log('---',this.isAiTranslate,this.courseInfo,'courseInfo');
|
||||
this.videoDom = this.$refs.video;
|
||||
this.videoDom.focus({preventScroll: true});
|
||||
let speedValue=localStorage.getItem('boe_video_speed');
|
||||
|
||||
Reference in New Issue
Block a user