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
98b4fcad
Commit
98b4fcad
authored
Sep 14, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除了注释
parent
a8c3e44a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
23 deletions
+13
-23
index.vue
src/views/AIStation/MoveMonitorPage/index.vue
+0
-6
index.vue
src/views/AIStation/PipelineTempPage/index.vue
+1
-6
index.vue
src/views/AIStation/TransTempPage/index.vue
+0
-6
VoiceCommandLocationPage.vue
src/views/AIStation/VoiceCommandLocationPage.vue
+6
-2
VoiceCommandPage.vue
src/views/AIStation/VoiceCommandPage.vue
+6
-3
No files found.
src/views/AIStation/MoveMonitorPage/index.vue
View file @
98b4fcad
...
...
@@ -243,12 +243,6 @@ watch(
if
(
route
.
path
===
'/AIStation/MoveMonitor'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
...
...
src/views/AIStation/PipelineTempPage/index.vue
View file @
98b4fcad
...
...
@@ -43,6 +43,7 @@ const alarmNum = ref(0);
// 点击标签页切换事件
const
handleTabClick
=
(
tab
,
event
)
=>
{
console
.
log
(
'tab'
,
tab
)
const
itemName
=
tab
.
props
.
label
const
selectedItem
=
topBtn
.
value
.
find
(
item
=>
item
.
name
===
itemName
.
slice
(
0
,
4
));
if
(
selectedItem
)
{
...
...
@@ -268,12 +269,6 @@ watch(
if
(
route
.
path
===
'/AIStation/PipelineTemp'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
...
...
src/views/AIStation/TransTempPage/index.vue
View file @
98b4fcad
...
...
@@ -277,12 +277,6 @@ watch(
if
(
route
.
path
===
'/AIStation/TransTemp'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
...
...
src/views/AIStation/VoiceCommandLocationPage.vue
View file @
98b4fcad
...
...
@@ -322,8 +322,12 @@ watch(
if
(
route
.
path
===
'/AIStation/VoiceCommandLocation'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
loadData
()
console
.
log
(
'route.path'
,
route
.
path
)
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
clearInterval
(
checkAIToken
);
// 停止轮询
loadData
();
}
},
100
);
// 每100ms检查一次
}
},
{
immediate
:
true
}
// 只在路径变化时触发
...
...
src/views/AIStation/VoiceCommandPage.vue
View file @
98b4fcad
...
...
@@ -182,10 +182,13 @@ watch(
()
=>
route
.
path
,
// 只监听路径变化
()
=>
{
if
(
route
.
path
===
'/AIStation/VoiceCommand'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
loadData
()
console
.
log
(
'route.path'
,
route
.
path
)
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
clearInterval
(
checkAIToken
);
// 停止轮询
loadData
();
}
},
100
);
// 每100ms检查一次
}
},
{
immediate
:
true
}
// 只在路径变化时触发
...
...
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