fix : 修改asset 修改endpoint回显不对的问题

This commit is contained in:
zhangyu
2020-08-06 11:24:14 +08:00
parent b571c1aebb
commit 0e8818ca6d

View File

@@ -239,6 +239,17 @@
this.$get('/endpoint',this.endpointSearchLabel).then(response => { this.$get('/endpoint',this.endpointSearchLabel).then(response => {
this.tools.loading = false; this.tools.loading = false;
if (response.code === 200) { if (response.code === 200) {
for (let i = 0; i < response.data.list.length; i++) {
try {
let tempObj = JSON.parse(response.data.list[i].param);
response.data.list[i].paramObj = [];
for (let k in tempObj) {
response.data.list[i].paramObj.push({key: k, value: tempObj[k]})
}
} catch (err) {
//console.error(response.data.list[i], err);
}
}
this.tableData = response.data.list; this.tableData = response.data.list;
this.$emit("reload"); this.$emit("reload");
} }