|
@@ -169,7 +169,8 @@ export default {
|
|
|
this.formdata = res.data;
|
|
|
this.title = '修改文章';
|
|
|
this.visibleSync = true;
|
|
|
- if (e.annex) this.fileList = e.annex;
|
|
|
+ if (e.annex) this.fileList = e.annex.filter(e => e !== '');
|
|
|
+ console.log(this.fileList, 'Editthis.fileList');
|
|
|
},
|
|
|
// 删除
|
|
|
async filterDelete (e) {
|
|
@@ -190,7 +191,8 @@ export default {
|
|
|
}
|
|
|
this.$delete(e, 'isRevise');
|
|
|
let res, msg;
|
|
|
- if (this.fileList.length > 0) e.annex = this.fileList;
|
|
|
+ e.annex = this.fileList;
|
|
|
+ console.log(e.annex, 'e.annex');
|
|
|
// 修改
|
|
|
if (e._id) {
|
|
|
delete e.svip;
|
|
@@ -214,8 +216,8 @@ export default {
|
|
|
},
|
|
|
// 附件上传
|
|
|
handleAnnexSuccess(res, file) {
|
|
|
- console.log(res, 'res');
|
|
|
this.fileList.push({ name: res.data.name, url: res.data.filePath });
|
|
|
+ console.log(this.fileList);
|
|
|
},
|
|
|
// 附件上传失败
|
|
|
handleerr(err, file, fileList) {
|