Explorar o código

编辑器-基础-自定义背景音乐:兼容旧版本作品

任一存 %!s(int64=3) %!d(string=hai) anos
pai
achega
9596dbd1ab
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      packages/code/src/views/base/backgroundMusicSettings.vue

+ 7 - 0
packages/code/src/views/base/backgroundMusicSettings.vue

@@ -72,6 +72,13 @@ export default {
     }
   },
   mounted() {
+    if (!this.info.backgroundMusic) {
+      this.info.backgroundMusic = {
+        id: '',
+        name: '',
+        ossPath: '',
+      }
+    }
   }
 }
 </script>