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