fix(测试跟踪): 新建项目-创建用例-用例步骤无法填写

--bug=1026445 --user=陈建星 新建项目-创建功能用例-用例步骤无法填写 https://www.tapd.cn/55049933/s/1374381
This commit is contained in:
chenjianxing 2023-05-23 14:44:05 +08:00 committed by jianxing
parent 037d23b8e9
commit 9264d1c7a6

View File

@ -1013,7 +1013,9 @@ export default {
this.form.prerequisite = this.testCaseTemplate.prerequisite;
this.form.stepDescription = this.testCaseTemplate.stepDescription;
this.form.expectedResult = this.testCaseTemplate.expectedResult;
this.form.steps = JSON.parse(this.testCaseTemplate.steps);
if (this.testCaseTemplate.steps) {
this.form.steps = JSON.parse(this.testCaseTemplate.steps);
}
},
async checkCurrentProject() {
if (this.isPublicShow) {