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

--bug=1012674 --user=王孝刚 【接口测试】MQTT协议场景-禁用Sub请求失败-看附件视频
https://www.tapd.cn/55049933/s/1146673
This commit is contained in:
wxg0103 2022-04-25 15:48:07 +08:00 committed by TIanyang
parent e2709ece6f
commit 952d9741d2
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: {