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
a8c3e44a
Commit
a8c3e44a
authored
Sep 14, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面的token Bug
parent
16670525
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
23 deletions
+52
-23
index.vue
src/views/AIStation/ExtinguisherPage/index.vue
+13
-6
index.vue
src/views/AIStation/MoveMonitorPage/index.vue
+13
-5
index.vue
src/views/AIStation/PipelineTempPage/index.vue
+13
-6
index.vue
src/views/AIStation/TransTempPage/index.vue
+13
-6
No files found.
src/views/AIStation/ExtinguisherPage/index.vue
View file @
a8c3e44a
...
...
@@ -243,13 +243,20 @@ watch(
if
(
route
.
path
===
'/AIStation/Extinguisher'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
setTimeout
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
)){
getNumber
()
getData
()
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
clearInterval
(
checkAIToken
);
// 停止轮询
getNumber
();
getData
();
}
},
500
);
},
100
);
// 每100ms检查一次
console
.
log
(
'route.path'
,
route
.
path
)
}
},
...
...
src/views/AIStation/MoveMonitorPage/index.vue
View file @
a8c3e44a
...
...
@@ -243,12 +243,20 @@ watch(
if
(
route
.
path
===
'/AIStation/MoveMonitor'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
setTimeout
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
)){
getNumber
()
getData
()
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
clearInterval
(
checkAIToken
);
// 停止轮询
getNumber
();
getData
();
}
},
500
);
},
100
);
// 每100ms检查一次
console
.
log
(
'route.path'
,
route
.
path
)
}
},
...
...
src/views/AIStation/PipelineTempPage/index.vue
View file @
a8c3e44a
...
...
@@ -268,13 +268,20 @@ watch(
if
(
route
.
path
===
'/AIStation/PipelineTemp'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
setTimeout
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
)){
getNumber
()
getData
()
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
clearInterval
(
checkAIToken
);
// 停止轮询
getNumber
();
getData
();
}
},
500
);
},
100
);
// 每100ms检查一次
console
.
log
(
'route.path'
,
route
.
path
)
}
},
...
...
src/views/AIStation/TransTempPage/index.vue
View file @
a8c3e44a
...
...
@@ -277,13 +277,20 @@ watch(
if
(
route
.
path
===
'/AIStation/TransTemp'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
setTimeout
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
)){
getNumber
()
getData
()
// setTimeout(() => {
// if(localStorage.getItem('AIToken')){
// getNumber()
// getData()
// }
// }, 500);
// 轮询检测 localStorage 是否更新
const
checkAIToken
=
setInterval
(()
=>
{
if
(
localStorage
.
getItem
(
'AIToken'
))
{
clearInterval
(
checkAIToken
);
// 停止轮询
getNumber
();
getData
();
}
},
500
);
},
100
);
// 每100ms检查一次
console
.
log
(
'route.path'
,
route
.
path
)
}
},
...
...
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