瀏覽代碼

feat: resumeBGM

gemercheung 1 年之前
父節點
當前提交
7fc21b6e1d

+ 1 - 1
packages/qjkankan-kankan-view/src/components/Controls/FloorSwitch.vue

@@ -17,7 +17,7 @@ import { useApp } from '@/app'
 const store = useStore()
 const mode = computed(() => store.getters.mode)
 const flying = computed(() => store.getters['flying'])
-const floors = computed(() => store.getters['scene/floors'].reverse())
+const floors = computed(() => store.getters['scene/floors'])
 const floorId = computed(() => store.getters.floorId)
 const showTours = computed(() => store.getters['tour/showTours'])
 const onGotoFloor = id => {

+ 3 - 3
packages/qjkankan-view/src/hooks/useAudio.js

@@ -224,9 +224,9 @@ class AudioPlayer {
       onend: () => {
         this._isPlaying = false;
         console.log("onend", this._loop);
-        if (!this._loop) {
-          // this.audio.unload();
-        }
+        // if (!this._loop) {
+        //   this.audio.unload();
+        // }
         this.emit("end");
       },
     });