|
@@ -13,7 +13,7 @@ import { useState } from 'react'
|
|
|
const DATA_TYPE_MYSQL = 'MySQL'
|
|
|
const KERBS_VALID_TRUE = true
|
|
|
|
|
|
-const waitTime = (time: number = 100) => {
|
|
|
+const waitTime = (time = 100) => {
|
|
|
return new Promise((resolve) => {
|
|
|
setTimeout(() => {
|
|
|
resolve(true);
|
|
@@ -42,7 +42,7 @@ export default function DatasourceAdd() {
|
|
|
trigger={
|
|
|
<Button type="primary">添加数据源</Button>
|
|
|
}
|
|
|
- onFinish={async (values: any) => {
|
|
|
+ onFinish={async (values) => {
|
|
|
await waitTime(2000);
|
|
|
message.success('提交成功');
|
|
|
return true;
|
|
@@ -173,7 +173,7 @@ export default function DatasourceAdd() {
|
|
|
]}
|
|
|
/> : <></>}
|
|
|
|
|
|
- <Col span={12} style={{'paddingLeft':'22.5px','paddingRight': '22.5px'}}>
|
|
|
+ <Col span={12} style={{ paddingLeft:'22.5px', paddingRight: '22.5px'}}>
|
|
|
<ProForm.Item label="测试连接" name='success'>
|
|
|
{testConnectBtn}
|
|
|
</ProForm.Item>
|