Commit 31ae8ded authored by Maofei94's avatar Maofei94

fix: 数据库初始化

parent 36e12bc7
Pipeline #22495 passed with stages
in 18 minutes 46 seconds
...@@ -136,10 +136,10 @@ const InitDataBase = props => { ...@@ -136,10 +136,10 @@ const InitDataBase = props => {
setInitVisible(true); setInitVisible(true);
let obj = form.getFieldsValue(); let obj = form.getFieldsValue();
doInitLog(); doInitLog();
for (let i = 0; i < 3; i++) { for (let i = 0; i < 10; i++) {
setTimeout(() => { setTimeout(() => {
doInitLog(); doInitLog();
}, 100); }, 1000);
} }
initDBv4({ initDBv4({
...@@ -614,7 +614,9 @@ const InitDataBase = props => { ...@@ -614,7 +614,9 @@ const InitDataBase = props => {
marginRight: ' -24px', marginRight: ' -24px',
}} }}
> >
{initContent} {initContent || (
<Spin spinning style={{ width: '100%', marginTop: '40px' }} />
)}
</div> </div>
</Modal> </Modal>
......
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