refactor(接口测试): 修改接口自动化mqtt插件初始化

This commit is contained in:
wxg0103 2022-02-23 13:50:28 +08:00 committed by 刘瑞斌
parent 19f724381e
commit 900813f534
1 changed files with 3 additions and 3 deletions

View File

@ -199,6 +199,9 @@ export default {
data: { data: {
handler: function () { handler: function () {
Object.assign(this.request, this.data); Object.assign(this.request, this.data);
if (this.request.condition) {
this.changeDisplay(this.request.condition);
}
}, },
deep: true deep: true
} }
@ -348,9 +351,6 @@ export default {
if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) { if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) {
this.pluginForm.setValue(this.request); this.pluginForm.setValue(this.request);
} }
if (this.request.condition) {
this.changeDisplay(this.request.condition);
}
}, },
} }
} }