fix: 处理 project endpoint列表不显示的问题

This commit is contained in:
zhangyu
2021-08-06 18:30:30 +08:00
parent 24a4d86082
commit 6269b5f659
2 changed files with 4 additions and 4 deletions

View File

@@ -166,9 +166,9 @@ export default {
// //console.error(response.data.list[i], err);
// }
// }
response.data.list.map(d => {
d.port = JSON.parse(d.configs).port
d.path = d.module.type
response.data.list.forEach(d => {
d.port = JSON.parse(d.configs[0].config).config.port
d.path = JSON.parse(d.configs[0].config).config.protocol
})
this.tableData = response.data.list
this.pageObj.total = response.data.total