Commit 4e39b661 authored by Maofei94's avatar Maofei94

perf: 去除console

parent e1d252d3
Pipeline #23372 skipped with stages
...@@ -50,7 +50,6 @@ const ManagementDataBase = () => { ...@@ -50,7 +50,6 @@ const ManagementDataBase = () => {
item.key = index; item.key = index;
return item; return item;
}); });
console.log(arr);
setAutoCheckList(arr); setAutoCheckList(arr);
setCheckList(arr2); setCheckList(arr2);
} }
...@@ -118,7 +117,6 @@ const ManagementDataBase = () => { ...@@ -118,7 +117,6 @@ const ManagementDataBase = () => {
}); });
}; };
const handleLog = (text, val) => { const handleLog = (text, val) => {
console.log(text);
setModalTitle(val); setModalTitle(val);
let arr = []; let arr = [];
arr.push( arr.push(
......
...@@ -35,7 +35,6 @@ const DatabaseConnectConfig = props => { ...@@ -35,7 +35,6 @@ const DatabaseConnectConfig = props => {
const [active, setActive] = useState('0'); const [active, setActive] = useState('0');
const handleChange = e => { const handleChange = e => {
console.log(e);
setActive(e); setActive(e);
}; };
......
...@@ -104,9 +104,7 @@ const AddModal = props => { ...@@ -104,9 +104,7 @@ const AddModal = props => {
: setShowReplicaSet(false); : setShowReplicaSet(false);
}; };
}, [visible]); }, [visible]);
useEffect(() => { useEffect(() => {}, [type === 'edit']);
console.log(form.getFieldsValue(), '103');
}, [type === 'edit']);
const layout = { const layout = {
layout: 'horizontal', layout: 'horizontal',
labelCol: { labelCol: {
......
...@@ -8,7 +8,6 @@ import { ...@@ -8,7 +8,6 @@ import {
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
const AddModal = props => { const AddModal = props => {
console.log(props);
const { callBackSubmit = () => {}, type, formObj, visible } = props; const { callBackSubmit = () => {}, type, formObj, visible } = props;
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [form] = Form.useForm(); const [form] = Form.useForm();
...@@ -80,11 +79,8 @@ const AddModal = props => { ...@@ -80,11 +79,8 @@ const AddModal = props => {
}) })
.catch(err => setLoading(false)); .catch(err => setLoading(false));
}; };
const onFinish = value => { const onFinish = value => {};
console.log(value, 'value');
};
useEffect(() => { useEffect(() => {
console.log(type);
switch (type) { switch (type) {
case 'add': case 'add':
form.resetFields(); form.resetFields();
......
...@@ -79,11 +79,8 @@ const AddModal = props => { ...@@ -79,11 +79,8 @@ const AddModal = props => {
}) })
.catch(err => setLoading(false)); .catch(err => setLoading(false));
}; };
const onFinish = value => { const onFinish = value => {};
console.log(value, 'value');
};
useEffect(() => { useEffect(() => {
console.log(type);
switch (type) { switch (type) {
case 'add': case 'add':
form.resetFields(); form.resetFields();
......
...@@ -8,7 +8,6 @@ import { ...@@ -8,7 +8,6 @@ import {
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
const AddModal = props => { const AddModal = props => {
console.log(props);
const { callBackSubmit = () => {}, type, formObj, visible } = props; const { callBackSubmit = () => {}, type, formObj, visible } = props;
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [form] = Form.useForm(); const [form] = Form.useForm();
...@@ -80,11 +79,8 @@ const AddModal = props => { ...@@ -80,11 +79,8 @@ const AddModal = props => {
}) })
.catch(err => setLoading(false)); .catch(err => setLoading(false));
}; };
const onFinish = value => { const onFinish = value => {};
console.log(value, 'value');
};
useEffect(() => { useEffect(() => {
console.log(type);
switch (type) { switch (type) {
case 'add': case 'add':
form.resetFields(); form.resetFields();
......
...@@ -98,7 +98,6 @@ const SQLServerTable = props => { ...@@ -98,7 +98,6 @@ const SQLServerTable = props => {
setVisible(true); setVisible(true);
}; };
const onSubmit = prop => { const onSubmit = prop => {
console.log(prop);
setVisible(false); setVisible(false);
setFlag(flag + 1); setFlag(flag + 1);
}; };
......
...@@ -108,7 +108,7 @@ const EditForm = props => { ...@@ -108,7 +108,7 @@ const EditForm = props => {
rules={[ rules={[
{ {
required: true, required: true,
message: '请输入访问路由', message: '请输入访问路由,ip加端口号,示例//localhost:3001/',
}, },
]} ]}
> >
......
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