fix(接口测试): 修复断言时间相关问题

--bug=1028243 --user=王孝刚 【接口测试】场景详情-场景断言-响应时间-点击增加图标-首次增加1
https://www.tapd.cn/55049933/s/1401487
--bug=1028238 --user=王孝刚
【接口测试】场景详情-场景断言-响应时间-清空-断言自动删除 https://www.tapd.cn/55049933/s/1401489
This commit is contained in:
wxg0103 2023-08-07 18:30:17 +08:00 committed by fit2-zhao
parent 37b1caf8b3
commit 5078308b14
2 changed files with 8 additions and 1 deletions

View File

@ -81,6 +81,13 @@ export default {
} }
}, },
input(value) { input(value) {
if (value === '' || Number(value) <= 0) {
this.$warning(this.$t('commons.response_time_warning'));
if (this.duration.value) {
this.value = this.duration.value;
}
return;
}
this.$emit('input', value); this.$emit('input', value);
}, },
validate() { validate() {

View File

@ -154,7 +154,7 @@ export default {
data() { data() {
return { return {
options: ASSERTION_TYPE, options: ASSERTION_TYPE,
time: '', time: 1,
type: '', type: '',
loading: false, loading: false,
reloadData: '', reloadData: '',