Commit a01b8a62 authored by Maofei94's avatar Maofei94

fix: 增加初始化请求时间间隔

parent d788f593
Pipeline #23042 passed with stages
in 19 minutes 59 seconds
...@@ -104,6 +104,7 @@ const InitDataBase = props => { ...@@ -104,6 +104,7 @@ const InitDataBase = props => {
if (res.allSqlDir.some(item => item === inUse)) { if (res.allSqlDir.some(item => item === inUse)) {
setDefaultSqlDir(res.tableSQLDirName); setDefaultSqlDir(res.tableSQLDirName);
} else { } else {
// 默认切换到第一个产品方案
handeleChangeSQLDirName(res.allSqlDir[0]); handeleChangeSQLDirName(res.allSqlDir[0]);
setDefaultSqlDir(res.allSqlDir[0]); setDefaultSqlDir(res.allSqlDir[0]);
} }
...@@ -133,7 +134,9 @@ const InitDataBase = props => { ...@@ -133,7 +134,9 @@ const InitDataBase = props => {
scroll.current.scrollTop = scroll.current.scrollHeight; scroll.current.scrollTop = scroll.current.scrollHeight;
} }
if (!res.finish) { if (!res.finish) {
setTimeout(() => {
doInitLog(); doInitLog();
}, 600);
} }
} }
}) })
......
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