mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复运行命令api任务日志路径
This commit is contained in:
1 parent
d8ae039b92
commit
c84908d7fa
6 files changed
+34
-21
No files matched your search
@@ -13,8 +13,6 @@ const Error = () => {
|
||||
const [data, setData] = useState('暂无日志');
|
||||
const retryTimes = useRef(1);
|
||||
|
||||
console.log(retryTimes.current);
|
||||
|
||||
const getLog = (needLoading: boolean = true) => {
|
||||
needLoading && setLoading(true);
|
||||
request
|
||||
@@ -24,9 +22,9 @@ const Error = () => {
|
||||
return reloadUser();
|
||||
}
|
||||
if (retryTimes.current > 3) {
|
||||
setData(error?.details);
|
||||
return;
|
||||
}
|
||||
setData(error.details);
|
||||
retryTimes.current += 1;
|
||||
setTimeout(() => {
|
||||
reloadUser();
|
||||
|
||||
Reference in new issue
Block a user