Commit 1b169213 authored by 皮倩雯's avatar 皮倩雯

fix: '修改gis默认端口号'

parent 6be385ed
Pipeline #83270 passed with stages
......@@ -10,7 +10,7 @@ const AddModal = props => {
const { callBackSubmit = () => {}, type, formObj, visible, solutionNames } = props;
const [loading, setLoading] = useState(false);
const [workSpace, setWorkSpace] = useState('');
const [serviceName, setServicename] = useState([
{
value: 'geoserver',
......@@ -115,7 +115,7 @@ const AddModal = props => {
}
setGsIp(gsIp);
let localIps = ['192.168.12.7', '192.168.19.100'];
let port = localIps.includes(gsIp) ? 8080 : 8088;
let port = localIps.includes(gsIp) ? 8080 : 18088;
form.setFieldsValue({ servicename: serviceName[0].value, port, ...formObj });
break;
case 'edit':
......@@ -214,7 +214,7 @@ const AddModal = props => {
};
const selectIp = value => {
let localIps = ['192.168.12.7', '192.168.19.100'];
let port = localIps.includes(value) ? 8080 : 8088;
let port = localIps.includes(value) ? 8080 : 18088;
form.setFieldsValue({ port, serviceadress: value });
};
return (
......@@ -285,10 +285,10 @@ const AddModal = props => {
>
{workList.length
? workList.map((item, index) => (
<Option key={index} value={item}>
{item}
</Option>
))
<Option key={index} value={item}>
{item}
</Option>
))
: ''}
</Select>
<Button
......
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