refactor(接口定义): 修复接口导入选择har控制台报错的缺陷 (#15722)

--bug=1014803 --user=王孝刚 【接口测试】覆盖模式,不选择模块,导入har格式接口,console有报错,页面没反应
https://www.tapd.cn/55049933/s/1200145

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-07-13 13:46:42 +08:00 committed by GitHub
parent a137eb7917
commit ddec01f9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ export default {
if (this.currentModule) { if (this.currentModule) {
param.modeId = this.formData.modeId param.modeId = this.formData.modeId
} }
if (this.formData.moduleId.length === 0) { if (this.formData.moduleId && this.formData.moduleId.length === 0) {
param.moduleId = '' param.moduleId = ''
} }
param.projectId = this.projectId; param.projectId = this.projectId;