diff --git a/src/components/baozuo-demo3/RightCmp.vue b/src/components/baozuo-demo3/RightCmp.vue index 828afc9..0c59ac4 100644 --- a/src/components/baozuo-demo3/RightCmp.vue +++ b/src/components/baozuo-demo3/RightCmp.vue @@ -94,7 +94,7 @@
- +
@@ -271,6 +271,10 @@ export default { this.todayDate = `${month}月${day}日`; this.todayWeek = week; + const video = document.getElementById('myVideo'); + video.muted = true; // 静音 + video.autoplay = true; + video.play().catch(e => console.error('播放错误:', e)); this.initPieChart(); this.initDangerChart(); this.initSafeChart();