Showing
1 changed file
with
4 additions
and
2 deletions
@@ -8,7 +8,7 @@ class ApiFormPartialConfig { | @@ -8,7 +8,7 @@ class ApiFormPartialConfig { | ||
8 | static restEndpointUrlPattern = 'http://localhost/api'; //端点URL模式 | 8 | static restEndpointUrlPattern = 'http://localhost/api'; //端点URL模式 |
9 | static requestMethod = 'POST'; //请求方式 | 9 | static requestMethod = 'POST'; //请求方式 |
10 | static proxyHost = true; //代理主机 | 10 | static proxyHost = true; //代理主机 |
11 | - static proxyPort = 0; //代理端口 | 11 | + static proxyPort = 1; //代理端口 |
12 | static maxParallelRequestsCount = 0; //最大并行请求数 | 12 | static maxParallelRequestsCount = 0; //最大并行请求数 |
13 | static readTimeoutMs = 0; //读取超时(毫秒) | 13 | static readTimeoutMs = 0; //读取超时(毫秒) |
14 | static maxQueueSize = 0; //Redis队列最大数 | 14 | static maxQueueSize = 0; //Redis队列最大数 |
@@ -99,8 +99,10 @@ export const modeApiForm: FormSchema[] = [ | @@ -99,8 +99,10 @@ export const modeApiForm: FormSchema[] = [ | ||
99 | component: 'InputNumber', | 99 | component: 'InputNumber', |
100 | defaultValue: ApiFormPartialConfig.proxyPort, | 100 | defaultValue: ApiFormPartialConfig.proxyPort, |
101 | componentProps: { | 101 | componentProps: { |
102 | + placeholder: '请输入代理端口', | ||
102 | maxLength: 255, | 103 | maxLength: 255, |
103 | - placeholder: 'http或者https开头', | 104 | + min: 1, |
105 | + max: 65535, | ||
104 | }, | 106 | }, |
105 | ifShow: ({ values }) => { | 107 | ifShow: ({ values }) => { |
106 | return !!values.enableProxy; | 108 | return !!values.enableProxy; |