fix: cancel video loading after destroying (#883)

This commit is contained in:
Jealous authored and GitHub committed 2025-01-24 14:54:02 +08:00
1 parent 4b4973eeb3
commit a8458b050b
1 file changed
+1
+1
View File
@@ -145,6 +145,7 @@ export default class Template {
}
destroy(removeHtml) {
this.$video.src = '';
if (removeHtml) {
this.$container.innerHTML = '';
} else {