SetInterval may be overridden by nodejs types...

ensure to use window
This commit is contained in:
Matthias 2024-05-29 06:48:46 +02:00
parent 9572b90a82
commit f5d7c28ae8

View File

@ -151,7 +151,7 @@ export const usePairlistConfigStore = defineStore(
const { job_id: jobId } = await botStore.activeBot.evaluatePairlist(payload); const { job_id: jobId } = await botStore.activeBot.evaluatePairlist(payload);
console.log('jobId', jobId); console.log('jobId', jobId);
intervalId.value = setInterval(async () => { intervalId.value = window.setInterval(async () => {
const res = await botStore.activeBot.getBackgroundJobStatus(jobId); const res = await botStore.activeBot.getBackgroundJobStatus(jobId);
if (!res.running) { if (!res.running) {
clearInterval(intervalId.value); clearInterval(intervalId.value);