diff --git a/src/views/party/components/addStudyResource.vue b/src/views/party/components/addStudyResource.vue index b07224e..58c755e 100644 --- a/src/views/party/components/addStudyResource.vue +++ b/src/views/party/components/addStudyResource.vue @@ -216,7 +216,8 @@ import { index as menulist} from "@/api/index"; } else { this.id = '' this.detail.id = '' - this.type = '' + this.type = '' + this.fileList = [] this.$refs['tinymce'].setContent(' ') this.$refs['addActivity'].reset() } @@ -321,7 +322,8 @@ import { index as menulist} from "@/api/index"; let res = await show({ id: this.id }) - Object.assign(this.detail, res); + Object.assign(this.detail, res); + this.fileList.push({name:res.audio_file,url:res.audio_file}) this.loadMenu() this.$refs['tinymce'].setContent(res.text ?? ' ') },