fix(接口定义): 修复修改模块不生效的缺陷 (#18056)

--bug=1016935 --user=王孝刚 【接口测试】修改接口模块不生效
https://www.tapd.cn/55049933/s/1246332

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-09-20 13:47:33 +08:00 committed by GitHub
parent 15a0da3b73
commit 0ad64f6c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -280,6 +280,7 @@ export default {
setParameter(data) { setParameter(data) {
data.name = this.currentApi.name; data.name = this.currentApi.name;
data.moduleId = this.currentApi.moduleId; data.moduleId = this.currentApi.moduleId;
data.modulePath = this.currentApi.modulePath;
data.userId = this.currentApi.userId; data.userId = this.currentApi.userId;
data.status = this.currentApi.status; data.status = this.currentApi.status;
if (this.currentApi.tags instanceof Array) { if (this.currentApi.tags instanceof Array) {

View File

@ -199,8 +199,8 @@ export default {
} }
}, },
setModule(id, data) { setModule(id, data) {
this.basicForm.module = id; this.basicForm.moduleId = id;
this.basicForm.nodePath = data.path; this.basicForm.modulePath = data.path;
}, },
validateForm() { validateForm() {
let isValidate = true; let isValidate = true;