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
fbd93475
Commit
fbd93475
authored
Sep 27, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键启停模块bug修改
parent
5a6f3e47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+6
-4
No files found.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
fbd93475
...
...
@@ -93,6 +93,7 @@
</template>
<
script
lang=
"ts"
setup
>
import
{
handleGetAIToken
}
from
'../AIStation/AItoken.js'
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
computed
,
watch
,
onBeforeUnmount
}
from
'vue'
import
store
from
"../../store/index"
;
import
http
from
"../../api/http"
;
...
...
@@ -832,14 +833,15 @@ const route = useRoute()
var
timerQuery
;
watch
(
()
=>
route
.
path
,
// 只监听路径变化
()
=>
{
if
(
route
.
path
===
'/Remote/OnekeyStartStop'
)
{
async
()
=>
{
if
(
route
.
path
===
'/Remote/OnekeyStartStop'
)
{
getSupplys
();
timerQuery
=
setInterval
(()
=>
{
timerQuery
=
setInterval
(
async
()
=>
{
await
handleGetAIToken
()
// 查询启停进度
getSteps
()
},
1000
);
// 每秒调用一次
}
else
{
}
else
{
// 清理定时任务
clearInterval
(
timerQuery
);
}
...
...
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