fix(接口测试): 修复接口用例环境保存失效的缺陷

--bug=1010689 --user=王孝刚 【接口测试】github#11051,接口用例环境保存失效
https://www.tapd.cn/55049933/s/1111109
This commit is contained in:
wxg0103 2022-02-28 17:55:46 +08:00 committed by 刘瑞斌
parent 832593e7eb
commit 2a9f22183b
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ export default {
let bodyFiles = this.getBodyUploadFiles(tmp);
tmp.projectId = getCurrentProjectID();
tmp.active = true;
tmp.request.useEnvironment = this.environment;
tmp.apiDefinitionId = tmp.apiDefinitionId || this.api.id;
let url = "/api/testcase/create";
if (tmp.id) {