Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
video-monitoring
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
刘怀志
video-monitoring
Commits
04ac4a7f
Commit
04ac4a7f
authored
Aug 12, 2024
by
拾柒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加销毁
parent
876ea75f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
detail.vue
src/views/video/detail.vue
+9
-0
index.vue
src/views/video/index.vue
+17
-0
playback.vue
src/views/video/playback.vue
+7
-0
No files found.
src/views/video/detail.vue
View file @
04ac4a7f
...
...
@@ -317,6 +317,15 @@ export default {
console
.
log
(
"promise 获取 数据"
,
data
);
});
},
},
destroyed
()
{
if
(
this
.
player
){
this
.
player
.
stop
()
}
// 销毁
this
.
player
=
null
this
.
player
.
destroyed
()
}
}
</
script
>
...
...
src/views/video/index.vue
View file @
04ac4a7f
...
...
@@ -369,6 +369,23 @@ export default {
console
.
log
(
"promise 获取 数据"
,
data
);
});
},
},
destroyed
()
{
if
(
this
.
player
||
this
.
player2
||
this
.
player3
||
this
.
player1
){
this
.
player2
.
stop
()
this
.
player1
.
stop
()
this
.
player3
.
stop
()
this
.
player
.
stop
()
}
// 销毁
this
.
player
=
null
this
.
player
.
destroyed
()
this
.
player1
=
null
this
.
player1
.
destroyed
()
this
.
player2
=
null
this
.
player2
.
destroyed
()
this
.
player3
=
null
this
.
player3
.
destroyed
()
}
}
</
script
>
...
...
src/views/video/playback.vue
View file @
04ac4a7f
...
...
@@ -352,6 +352,13 @@ export default {
this
.
$router
.
go
(
-
1
)
}
}
},
destroyed
()
{
if
(
this
.
player
){
this
.
player
.
stop
()
this
.
player
.
destroyed
()
this
.
player
=
null
}
}
}
</
script
>
...
...
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