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
8e349143
Commit
8e349143
authored
Jul 29, 2024
by
qjeslks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
240729
parent
7fd97069
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
VideoViewPage.vue
src/views/Video/VideoViewPage.vue
+6
-0
No files found.
src/views/Video/VideoViewPage.vue
View file @
8e349143
...
@@ -68,6 +68,10 @@ import { JSEncrypt } from 'jsencrypt'
...
@@ -68,6 +68,10 @@ import { JSEncrypt } from 'jsencrypt'
import
{
WebControl
}
from
'../../assets/script/video/web-control.esm.min.js'
import
{
WebControl
}
from
'../../assets/script/video/web-control.esm.min.js'
import
{
onActivated
,
onDeactivated
}
from
'vue'
import
{
onActivated
,
onDeactivated
}
from
'vue'
onActivated
(()
=>
{
onActivated
(()
=>
{
if
(
route
.
query
.
id
){
VideoInfo
.
value
=
route
.
query
.
id
;
getVideoFromVideoList
(
route
.
query
.
id
);
}
showPlay
();
showPlay
();
})
})
onDeactivated
(()
=>
{
onDeactivated
(()
=>
{
...
@@ -78,6 +82,8 @@ const route = useRoute();
...
@@ -78,6 +82,8 @@ const route = useRoute();
onBeforeRouteUpdate
((
to
,
from
)
=>
{
onBeforeRouteUpdate
((
to
,
from
)
=>
{
var
r
=
useRoute
();
var
r
=
useRoute
();
console
.
log
(
'update'
)
console
.
log
(
r
.
query
.
id
);
if
(
r
.
query
.
id
){
if
(
r
.
query
.
id
){
VideoInfo
.
value
=
r
.
query
.
id
;
VideoInfo
.
value
=
r
.
query
.
id
;
getVideoFromVideoList
(
r
.
query
.
id
);
getVideoFromVideoList
(
r
.
query
.
id
);
...
...
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