mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提交scorm的修改
This commit is contained in:
@@ -79,6 +79,10 @@ export default {
|
||||
type: Number,
|
||||
default: 1024,
|
||||
},
|
||||
scorm:{
|
||||
type:String,
|
||||
default:''
|
||||
},
|
||||
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
||||
fileType: {
|
||||
type: Array,
|
||||
@@ -156,6 +160,13 @@ export default {
|
||||
//this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`);
|
||||
return false;
|
||||
}
|
||||
|
||||
//console.log(this.scorm,fileExtension,'upload');
|
||||
if(this.scorm && this.scorm==fileExtension){
|
||||
this.data.dir="scorm";
|
||||
}
|
||||
//console.log(this.data,'this.data');
|
||||
|
||||
}
|
||||
// 校检文件大小
|
||||
if (this.fileSize) {
|
||||
@@ -166,6 +177,7 @@ export default {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(this.loading) {
|
||||
this.isLoading = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user