diff --git a/src/components/Course/chooseCourseFile.vue b/src/components/Course/chooseCourseFile.vue index 5e3db2e1..e8e34471 100644 --- a/src/components/Course/chooseCourseFile.vue +++ b/src/components/Course/chooseCourseFile.vue @@ -128,6 +128,15 @@ return false; } }); + this.findCourseFile(); + }, + watch:{ + resType(newVal,oldVal){ + if(newVal!=oldVal){ + this.findCourseFile(); + } + + } }, methods:{ handleBeforeUpload(file) {