修复响应时间断言添加不成功的bug
This commit is contained in:
parent
b377d398ab
commit
d8d79cd2ee
|
@ -32,13 +32,12 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
add: function () {
|
add: function () {
|
||||||
this.remove();
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.duration.value = this.time;
|
this.duration.value = this.time;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
remove: function () {
|
remove: function () {
|
||||||
this.duration.value = null;
|
this.duration.value = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div>
|
<div>
|
||||||
{{$t("api_test.request.assertions.response_time")}}
|
{{$t("api_test.request.assertions.response_time")}}
|
||||||
</div>
|
</div>
|
||||||
<ms-api-assertion-response-time :response-time="assertions.responseTime" :edit="true"/>
|
<ms-api-assertion-response-time :duration="assertions.duration" :edit="true"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue