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

一键启停页面bug修改

parent 9c888277
...@@ -929,16 +929,17 @@ function getSteps() { ...@@ -929,16 +929,17 @@ function getSteps() {
} }
var timerQuery var timerQuery
// 定时任务 // 定时任务
function scheduledTasks() { async function scheduledTasks() {
const userInfo = store.getters.getUserInfo(); const userInfo = store.getters.getUserInfo();
const userId = userInfo.userId; const userId = userInfo.userId;
const params = { const params = {
userId: userId userId: userId
} }
selectIsScheduleByUserId(params).then(res => {
if(res.data === true) {
timerQuery = setInterval(async () => {
await handleGetAIToken() await handleGetAIToken()
selectIsScheduleByUserId(params).then(res => {
if (res.data === true) {
timerQuery = setInterval(() => {
// 查询启停进度 // 查询启停进度
getSteps() getSteps()
}, 1000); // 每秒调用一次 }, 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