lsc 2 years ago
parent
commit
db8824e9db
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/components/pages/addCourse.vue

+ 9 - 7
src/components/pages/addCourse.vue

@@ -4988,15 +4988,17 @@ export default {
     },
     handle_remove1(file, fileList, type) {
       var _tmp = this.cover;
-      for (var i = 0, len = _tmp.length; i < len; i++) {
-        if (_tmp[i].uid == file.uid) {
-          _tmp.splice(i, 1);
-          break;
-        }
-        this.cover = _tmp;
-      }
+      // for (var i = 0, len = _tmp.length; i < len; i++) {
+      //   if (_tmp[i].uid == file.uid) {
+      //     _tmp.splice(i, 1);
+      //     break;
+      //   }
+      //   this.cover = _tmp;
+      // }
+      this.cover = []
       this.noneBtnImg = _tmp.length >= 1;
       this.isSysPic = false;
+      this.$forceUpdate();
     },
     addImg(e) {
       var el = e.currentTarget;