修复响应时间断言添加不成功的bug

This commit is contained in:
q4speed 2020-05-19 18:49:02 +08:00
parent b377d398ab
commit d8d79cd2ee
2 changed files with 2 additions and 3 deletions

View File

@ -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;
} }
} }
} }

View File

@ -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>