修复运行命令api任务日志路径

This commit is contained in:
whyour
2023-05-04 10:25:04 +08:00
parent d8ae039b92
commit c84908d7fa
6 changed files with 34 additions and 21 deletions
+1 -3
View File
@@ -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();