refactor(测试跟踪): 创建功能用例选择版本创建报错

--bug=1015334 --user=陈建星 【测试跟踪】创建功能用例,选择版本-操作-新建,报500 https://www.tapd.cn/55049933/s/1210250
This commit is contained in:
chenjianxing 2022-07-25 16:14:41 +08:00 committed by jianxing
parent 76b7403063
commit f122eed8a1

View File

@ -1078,9 +1078,13 @@ export default {
},
hasOtherInfo() {
return new Promise((resolve) => {
this.$get("test/case/hasOtherInfo/" + this.form.id, (res) => {
resolve(res.data);
})
if (this.form.id) {
this.$get("test/case/hasOtherInfo/" + this.form.id, (res) => {
resolve(res.data);
});
} else {
resolve();
}
}
);
},