fix(接口测试): 修复场景禁用mqtt步骤保存后未生效的缺陷 (#13022)

--bug=1012674 --user=王孝刚 【接口测试】MQTT协议场景-禁用Sub请求失败-看附件视频
https://www.tapd.cn/55049933/s/1146673

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-04-25 16:06:27 +08:00 committed by GitHub
parent 50f0d8a1f6
commit 3dbe4371bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -419,6 +419,9 @@ export default {
deleteResourceIds(array) {
if (array instanceof Array && array.length > 0) {
array.forEach(item => {
if (item.currentScenarioId && item.currentScenarioId.length > 0) {
delete item.currentScenarioId;
}
if (item.resourceId) {
delete item.resourceId;
}

View File

@ -257,8 +257,11 @@ export default {
},
deep: true
},
'request.name'() {
this.data.name = this.request.name;
request: {
handler(v) {
this.data = this.request;
},
deep: true
}
},
methods: {