Commit d91fdba5 authored by antoor's avatar antoor

Add request-timeout's setting ui

添加请求超时设置UI
parent 533280f5
...@@ -41,6 +41,7 @@ class Form { ...@@ -41,6 +41,7 @@ class Form {
// 回调数据 // 回调数据
if (callback) { if (callback) {
win.progressOn(); win.progressOn();
setTimeout(() => {
callback(this._parseFormData( callback(this._parseFormData(
this.baseForm.getValues(), this.baseForm.getValues(),
this.httpForm.getValues(), this.httpForm.getValues(),
...@@ -54,6 +55,7 @@ class Form { ...@@ -54,6 +55,7 @@ class Form {
win.progressOff(); win.progressOff();
toastr.error(msg, LANG_T['error']); toastr.error(msg, LANG_T['error']);
}); });
}, 100);
}; };
}); });
} }
...@@ -280,7 +282,20 @@ class Form { ...@@ -280,7 +282,20 @@ class Form {
}, { }, {
type: "checkbox", name: 'terminal-cache', label: LANG['list']['otherConf']['notermcache'], type: "checkbox", name: 'terminal-cache', label: LANG['list']['otherConf']['notermcache'],
checked: opt['terminal-cache'] === 1 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); ]}], true);
return form; 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