fix(测试跟踪): 保存时用例ID未传值

--bug=1024402 --user=宋昌昌 【测试跟踪】功能用例-详情页点击编辑用例步骤-文本描述-保存报错 https://www.tapd.cn/55049933/s/1354191
This commit is contained in:
song-cc-rock 2023-03-22 10:25:36 +08:00 committed by jianxing
parent bba710b177
commit c87c8cb205
3 changed files with 3 additions and 1 deletions

View File

@ -2254,10 +2254,10 @@ public class TestCaseService {
public TestCase edit(EditTestCaseRequest request) {
TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(request.getId());
request.setNum(testCaseWithBLOBs.getNum());
if (testCaseWithBLOBs == null) {
MSException.throwException(Translator.get("edit_load_test_not_found") + request.getId());
}
request.setNum(testCaseWithBLOBs.getNum());
this.setNode(request);
return editTestCase(request);
}

View File

@ -1249,6 +1249,7 @@ export default {
this.routerToEdit(response.data.id);
this.form.num = response.data.num;
this.form.customNum = response.data.customNum;
setTimeout(() => this.initEdit(), 500);
}
}
this.createVersionId = null;

View File

@ -304,6 +304,7 @@ export default {
flex: none;
order: 0;
flex-grow: 0;
border-radius: 4px;
}
.download-tips-content {