转数组
This commit is contained in:
@@ -106,11 +106,13 @@ export default {
|
|||||||
resourceNum: e.resourceNum,
|
resourceNum: e.resourceNum,
|
||||||
categoryIcon: e.categoryIcon,
|
categoryIcon: e.categoryIcon,
|
||||||
id: e.id,
|
id: e.id,
|
||||||
categoryIconArr: [{0:e.categoryIcon}]
|
// categoryIconArr: [{ 0: e.categoryIcon}],
|
||||||
|
categoryIconArr: [e.categoryIcon]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
console.log(this.tableData);
|
console.log(this.tableData);
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -148,8 +150,9 @@ export default {
|
|||||||
getDetail(ids) {
|
getDetail(ids) {
|
||||||
this.instance.post(`/app/appresourcecategory/queryDetailById?id=${ids}`).then(res=> {
|
this.instance.post(`/app/appresourcecategory/queryDetailById?id=${ids}`).then(res=> {
|
||||||
if(res.data) {
|
if(res.data) {
|
||||||
|
console.log(res.data);
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
// this.form.categoryIconArr = [...res.data.categoryIcon]
|
this.form.categoryIconArr = [res.data.categoryIcon]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user