fix(接口定义): 修复另存为新接口,默认模块丢失的缺陷

--bug=1017830 --user=王孝刚 【接口测试】接口定义-生成测试数据-另存为新接口-默认模块被清空
https://www.tapd.cn/55049933/s/1258821
This commit is contained in:
wxg0103 2022-10-11 18:16:00 +08:00 committed by f2c-ci-robot[bot]
parent 8ff6efe0a4
commit a4daad9c8a
4 changed files with 8 additions and 0 deletions

View File

@ -189,6 +189,8 @@ export default {
data.method = this.api.method; data.method = this.api.method;
data.status = this.api.status; data.status = this.api.status;
data.userId = this.api.userId; data.userId = this.api.userId;
data.moduleId = this.api.moduleId;
data.modulePath = this.api.modulePath;
data.description = this.api.description; data.description = this.api.description;
this.$emit('saveAsApi', data); this.$emit('saveAsApi', data);
this.$emit('refresh'); this.$emit('refresh');

View File

@ -316,6 +316,8 @@ export default {
data.method = req.method; data.method = req.method;
data.path = req.path; data.path = req.path;
data.url = this.api.url; data.url = this.api.url;
data.moduleId = this.api.moduleId;
data.modulePath = this.api.modulePath;
data.status = this.api.status; data.status = this.api.status;
data.userId = this.api.userId; data.userId = this.api.userId;
data.description = this.api.description; data.description = this.api.description;

View File

@ -190,6 +190,8 @@ export default {
data.method = this.api.method; data.method = this.api.method;
data.status = this.api.status; data.status = this.api.status;
data.userId = this.api.userId; data.userId = this.api.userId;
data.moduleId = this.api.moduleId;
data.modulePath = this.api.modulePath;
data.description = this.api.description; data.description = this.api.description;
this.$emit('saveAsApi', data); this.$emit('saveAsApi', data);
this.$emit('refresh'); this.$emit('refresh');

View File

@ -263,6 +263,8 @@ export default {
data.method = this.api.method; data.method = this.api.method;
data.status = this.api.status; data.status = this.api.status;
data.userId = this.api.userId; data.userId = this.api.userId;
data.moduleId = this.api.moduleId;
data.modulePath = this.api.modulePath;
data.description = this.api.description; data.description = this.api.description;
this.$emit('saveAsApi', data); this.$emit('saveAsApi', data);
this.$emit('refresh'); this.$emit('refresh');