浏览代码

fix: bg music play issue

chenlei 1 月之前
父节点
当前提交
04dc76324c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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/${