瀏覽代碼

1、台灯音乐功能
2、运行结果日志功能

liyanbo 6 月之前
父節點
當前提交
4d468d8e89
共有 2 個文件被更改,包括 565 次插入591 次删除
  1. 1 1
      src/api/blockly/music.js
  2. 564 590
      src/views/Blockly.vue

+ 1 - 1
src/api/blockly/music.js

@@ -31,7 +31,7 @@ export const musicTypeConfig = {
 
 // 播放音乐函数 - 修改为接受参数而不是直接使用外部变量
 export const playMusic = (musicType, state, musicPlayer) => {
-    console.log(`尝试播放音乐类型: ${musicType}`);
+    console.log(`播放音乐类型: ${musicType}`);
 
     // 检查是否有对应的音乐配置
     if (musicTypeConfig[musicType]) {

File diff suppressed because it is too large
+ 564 - 590
src/views/Blockly.vue


Some files were not shown because too many files changed in this diff