fix: 新增是否启用pathStyle

This commit is contained in:
Pan Qiancheng 2025-10-24 17:27:10 +08:00
parent 0271a93e31
commit 75296485f1
2 changed files with 28 additions and 1 deletions

View File

@ -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={{

View File

@ -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"