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:
parent
37b1caf8b3
commit
5078308b14
|
@ -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() {
|
||||||
|
|
|
@ -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: '',
|
||||||
|
|
Loading…
Reference in New Issue