chenlei hai 11 meses
pai
achega
a83fdf3b69
Modificáronse 3 ficheiros con 11 adicións e 4 borrados
  1. 1 1
      public/js/main_2020_show.js
  2. 3 2
      public/js/manage.js
  3. 7 1
      src/views/home/index.tsx

+ 1 - 1
public/js/main_2020_show.js

@@ -5191,7 +5191,7 @@ window.Modernizr = (function (n, e, t) {
                 ((this.currentItem = null),
                 (this.destinationItem = null),
                 (this.tourIsPlaying = !1),
-                //this.bgmReplay(),//xzw
+                // this.bgmReplay(),//xzw
                 (this.transitionStage = y.None),
                 (this.nextFunc = null),
                 (this.onTheBus = !1),

+ 3 - 2
public/js/manage.js

@@ -1673,6 +1673,7 @@ var SoundManager = {
         //播放之前的音频。它们是被打断过的。
         while (this.playHistory.length) {
           var last = this.playHistory.pop();
+
           if (last.src && last.canplay(last.audio)) {
             this.play(last.name);
           }
@@ -1803,8 +1804,8 @@ Manage.prototype.loadAudio = function () {
       }
     });
 
-  // this.switchBgmState(true); //初始设置允许播放bgm
-  // SoundManager.initAutoPlay();
+  this.switchBgmState(true); //初始设置允许播放bgm
+  SoundManager.initAutoPlay();
 };
 
 Manage.prototype.switchBgmState = function (state) {

+ 7 - 1
src/views/home/index.tsx

@@ -38,7 +38,13 @@ export default defineComponent({
     return (
       <div class="home">
         {/* 封面 */}
-        {this.coverVisible && <Cover onClose={() => (this.coverVisible = false)} />}
+        {this.coverVisible && (
+          <Cover
+            onClose={() => {
+              this.coverVisible = false;
+            }}
+          />
+        )}
 
         {/* 进度条加载 */}
         <GuiLoading />