Commit 4d542210 authored by 张伯涛's avatar 张伯涛

一键启停页面bug修改

parent 9c888277
......@@ -929,19 +929,20 @@ function getSteps() {
}
var timerQuery
// 定时任务
function scheduledTasks() {
async function scheduledTasks() {
const userInfo = store.getters.getUserInfo();
const userId = userInfo.userId;
const params = {
userId: userId
}
await handleGetAIToken()
selectIsScheduleByUserId(params).then(res => {
if(res.data === true) {
timerQuery = setInterval(async () => {
await handleGetAIToken()
// 查询启停进度
getSteps()
}, 1000); // 每秒调用一次
if (res.data === true) {
timerQuery = setInterval(() => {
// 查询启停进度
getSteps()
}, 1000); // 每秒调用一次
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment