|
@@ -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;
|