diff --git a/src/views/modules/course/medicalLabel.vue b/src/views/modules/course/medicalLabel.vue index f2df9c0..ef2900c 100644 --- a/src/views/modules/course/medicalLabel.vue +++ b/src/views/modules/course/medicalLabel.vue @@ -14,7 +14,7 @@
@@ -116,7 +116,7 @@ :action="baseUrl + '/oss/fileoss'" :on-remove="audioHandleRemove" :on-success="audioUploadSuccess" - accept=".mp3" + accept=".jpg" :limit="1" :file-list="audioFileList" > @@ -618,6 +618,7 @@ export default { audioHandleRemove(file, fileList) { console.log(file, fileList); this.audioFileList = [] + this.addForm.media = '' }, audioUploadSuccess(res, file) { this.audioFileList = [] @@ -734,10 +735,10 @@ export default { this.addForm = form; this.fimages = this.addForm.icon; this.audioFileList = [] - if(this.addForm.mediaType == 2){ + if(this.addForm.mediaType == 2 && this.addForm.media != ''){ this.audioFileList.push({ url:this.addForm.media, - name:'audio' + name:'audio--' }) } @@ -813,7 +814,7 @@ export default { this.addForm = data.Medical; this.audioFileList = [] - if(this.addForm.mediaType == 2){ + if(this.addForm.mediaType == 2 && this.addForm.media != ''){ this.audioFileList.push({ url:this.addForm.media, name:'audio' @@ -1477,10 +1478,10 @@ p { } .shopFormBox { - min-width: auto !important; + min-width: auto !important; } .ql-container { - height: 200px; overflow-y: scroll; + min-height: 200px; } /deep/ .quill-editor{min-height: 200px !important;}