Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
4d542210
Commit
4d542210
authored
Oct 10, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键启停页面bug修改
parent
9c888277
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+8
-7
No files found.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
4d542210
...
@@ -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
);
// 每秒调用一次
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment