fix: 测试用例列表标签显示问题

This commit is contained in:
chenjianxing 2021-03-25 14:05:37 +08:00
parent a484f5a380
commit 7ac98d98cf
2 changed files with 4 additions and 0 deletions

View File

@ -640,6 +640,7 @@ export default {
if (tmp.steps == null) { if (tmp.steps == null) {
tmp.steps = [] tmp.steps = []
} }
tmp.tags = JSON.parse(tmp.tags);
Object.assign(this.form, tmp); Object.assign(this.form, tmp);
console.log(this.form.selected) console.log(this.form.selected)
this.form.module = testCase.nodeId; this.form.module = testCase.nodeId;

View File

@ -395,6 +395,9 @@ export default {
item.tags = JSON.parse(item.tags); item.tags = JSON.parse(item.tags);
} }
})*/ })*/
this.tableData.forEach((item) => {
item.tags = JSON.parse(item.tags);
})
if (this.$refs.table) { if (this.$refs.table) {
this.$refs.table.doLayout() this.$refs.table.doLayout()
} }