|
|
@@ -119,12 +119,14 @@ export default {
|
|
|
this.form = val
|
|
|
this.data = this.fetchIndex(this.data, this.form.taskStatus)
|
|
|
this.data1 = this.fetchIndex(this.data1, this.form.level)
|
|
|
- this.fileList = val.files.map(ele => {
|
|
|
- return {
|
|
|
- fileId: ele.id,
|
|
|
- title: ele.title
|
|
|
- }
|
|
|
- })
|
|
|
+ if (val.files && val.files.length > 0) {
|
|
|
+ this.fileList = val.files.map(ele => {
|
|
|
+ return {
|
|
|
+ fileId: ele.id,
|
|
|
+ title: ele.title
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
immediate: true
|