|
|
@ -342,9 +342,10 @@ export default { |
|
|
|
this.$router.push("course"); |
|
|
|
this.$router.push("course"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
transferType(ext) { |
|
|
|
transferType(ext) { |
|
|
|
if ("jpg,jpeg,png,gif,svg,psd".includes(ext)) return "图片"; |
|
|
|
const suf = ext.toLowerCase() |
|
|
|
if ("mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv".includes(ext)) return "视频"; |
|
|
|
if ("jpg,jpeg,png,gif,svg,psd".includes(suf)) return "图片"; |
|
|
|
return ext; |
|
|
|
if ("mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv".includes(suf)) return "视频"; |
|
|
|
|
|
|
|
return suf; |
|
|
|
}, |
|
|
|
}, |
|
|
|
addChapter() { |
|
|
|
addChapter() { |
|
|
|
this.chapterName = ""; |
|
|
|
this.chapterName = ""; |
|
|
|