Explorar el Código

fix: bg music play issue

chenlei hace 1 mes
padre
commit
04dc76324c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/index/views/home/components/menu/index.tsx

+ 1 - 1
src/index/views/home/components/menu/index.tsx

@@ -74,7 +74,7 @@ export default defineComponent({
 
       const detail = await window.kankan.store.get('metadata');
 
-      if (detail.musicFile) {
+      if (detail.music) {
         // 存在背景音乐
         const dom = document.createElement('audio');
         dom.src = `${import.meta.env.VITE_APP_BACKEND_URL}/scene_view_data/${