Commit d91fdba5 authored by antoor's avatar antoor

Add request-timeout's setting ui

添加请求超时设置UI
parent 533280f5
......@@ -41,6 +41,7 @@ class Form {
// 回调数据
if (callback) {
win.progressOn();
setTimeout(() => {
callback(this._parseFormData(
this.baseForm.getValues(),
this.httpForm.getValues(),
......@@ -54,6 +55,7 @@ class Form {
win.progressOff();
toastr.error(msg, LANG_T['error']);
});
}, 100);
};
});
}
......@@ -280,7 +282,20 @@ class Form {
}, {
type: "checkbox", name: 'terminal-cache', label: LANG['list']['otherConf']['notermcache'],
checked: opt['terminal-cache'] === 1
}, {
type: "label", label: '请求超时'
}, {
type: "combo", label: '/ms', inputWidth: 100, name: "request-timeout", options: [
{
text: "5000", value: "5000"
}, {
text: "10000", value: "10000", selected: true
}, {
text: "30000", value: "30000"
}, {
text: "60000", value: "60000"
}
]},
]}], true);
return form;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment