fix: 新增是否启用pathStyle
This commit is contained in:
parent
0271a93e31
commit
75296485f1
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { Tabs, Row, Col, Card, Divider, Input, Form, Space, Select, Typography, } from 'antd';
|
||||
import { Tabs, Row, Col, Card, Divider, Input, Form, Space, Select, Typography, Switch, } from 'antd';
|
||||
import Styles from './web.module.less';
|
||||
import { isEmptyObject } from '../../../../utils/strings';
|
||||
// https://developer.qiniu.com/kodo/1671/region-endpoint-fq
|
||||
|
|
@ -948,6 +948,11 @@ function S3Cos(props) {
|
|||
.value)}/>
|
||||
</>
|
||||
</Form.Item>
|
||||
<Form.Item label="pathStyle" help="使用路径样式访问(MinIO必须开启)">
|
||||
<>
|
||||
<Switch checked={ele.pathStyle} onChange={(checked) => setValue(`buckets.${idx}.pathStyle`, checked)}/>
|
||||
</>
|
||||
</Form.Item>
|
||||
<Form.Item label="protocol">
|
||||
<>
|
||||
<Select mode="multiple" allowClear style={{
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import {
|
|||
Space,
|
||||
Select,
|
||||
Typography,
|
||||
Switch,
|
||||
} from 'antd';
|
||||
import Styles from './web.module.less';
|
||||
import { QiniuZone, CTYunZone, ALiYunZone, TencentYunZone } from 'oak-external-sdk';
|
||||
|
|
@ -1814,6 +1815,27 @@ function S3Cos(props: {
|
|||
/>
|
||||
</>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="pathStyle"
|
||||
help="使用路径样式访问(MinIO必须开启)"
|
||||
// name="pathStyle"
|
||||
>
|
||||
<>
|
||||
<Switch
|
||||
checked={
|
||||
ele.pathStyle
|
||||
}
|
||||
onChange={(
|
||||
checked
|
||||
) =>
|
||||
setValue(
|
||||
`buckets.${idx}.pathStyle`,
|
||||
checked
|
||||
)
|
||||
}
|
||||
/>
|
||||
</>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="protocol"
|
||||
// name="protocol"
|
||||
|
|
|
|||
Loading…
Reference in New Issue