refactor(接口测试): 优化创建场景状态是空的缺陷 (#15834)
--bug=1014924 --user=王孝刚 【接口测试】场景-更多操作-创建场景,状态是空的 https://www.tapd.cn/55049933/s/1202822 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
76ae965d7c
commit
71bdf13387
|
@ -113,6 +113,8 @@ export default {
|
|||
if (valid) {
|
||||
let path = "/api/automation/create";
|
||||
this.setParameter();
|
||||
this.scenarioForm.status = 'Underway';
|
||||
this.scenarioForm.level = 'P0';
|
||||
if (saveAs) {
|
||||
this.scenarioForm.request = JSON.stringify(this.scenarioForm.request);
|
||||
this.$emit('saveAsEdit', this.scenarioForm);
|
||||
|
|
|
@ -137,6 +137,7 @@ export default {
|
|||
let bodyFiles = [];
|
||||
let path = "/api/definition/create";
|
||||
this.setParameter();
|
||||
this.httpForm.status = 'Underway';
|
||||
// 历史数据兼容处理
|
||||
if (this.httpForm.request) {
|
||||
this.httpForm.request.clazzName = TYPE_TO_C.get(this.httpForm.request.type);
|
||||
|
|
Loading…
Reference in New Issue