|
@@ -63,12 +63,12 @@ export default {
|
|
|
this.show = true
|
|
|
const taskId = `TASK-${id}`
|
|
|
runAlgorithms(id).then(res => {
|
|
|
- this.timer = setInterval(this.getLogInfo, 1000, taskId)
|
|
|
+ this.timer = setInterval(this.getLogInfo, 3000, taskId)
|
|
|
})
|
|
|
},
|
|
|
getLogInfo(taskId) {
|
|
|
getLog(taskId).then(response => {
|
|
|
- let logData = response.data || `<p style='color: #58e072'> INFO: [2023-10-23 15:00:14] -> 算法执行中...... </p>`
|
|
|
+ let logData = response.data
|
|
|
console.log('response.data', logData);
|
|
|
if (logData && logData.includes('任务执行完成')) {
|
|
|
console.log("定时器销毁");
|