mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
修复定时任务详情页查看历史日志异常
This commit is contained in:
@@ -40,6 +40,7 @@ const CronLogModal = ({
|
||||
const [executing, setExecuting] = useState<any>(true);
|
||||
const [isPhone, setIsPhone] = useState(false);
|
||||
const scrollInfoRef = useRef({ value: 0, down: true });
|
||||
const uniqPath = logUrl ? logUrl : String(cron?.id);
|
||||
|
||||
const getCronLog = (isFirst?: boolean) => {
|
||||
if (isFirst) {
|
||||
@@ -50,7 +51,7 @@ const CronLogModal = ({
|
||||
.then(({ code, data }) => {
|
||||
if (
|
||||
code === 200 &&
|
||||
localStorage.getItem('logCron') === String(cron.id) &&
|
||||
localStorage.getItem('logCron') === uniqPath &&
|
||||
data !== value
|
||||
) {
|
||||
const log = data as string;
|
||||
|
||||
Reference in New Issue
Block a user