mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-21 08:46:44 +08:00
ai视频一期功能提交-避免无权限时语种为空
This commit is contained in:
@@ -1023,6 +1023,10 @@ export default {
|
||||
// 初始化ai数据
|
||||
initAiData() {
|
||||
if (!this.aiPermission) {
|
||||
// 如果ai设置为空则给默认值 - 会看成新增状态
|
||||
if(this.courseInfo.aiSet === null || this.courseInfo.aiSet === '' || this.courseInfo.aiSet === undefined){
|
||||
this.courseInfo.languageCode = ['zh-CN', 'en-US'];
|
||||
}
|
||||
return;
|
||||
}
|
||||
// 如果ai设置为空则给默认值 - 会看成新增状态
|
||||
|
||||
Reference in New Issue
Block a user