瀏覽代碼

feat: 速度默认值

TIANYONG 1 年之前
父節點
當前提交
7194b572bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/state.ts

+ 1 - 1
src/state.ts

@@ -805,7 +805,7 @@ const setState = (data: any, index: number) => {
   state.parentCategoriesId = data.musicTag;
   state.musicSheetCategoriesId = data.musicCategoryId;
   state.playMode = data.playMode === "MP3" ? "MP3" : "MIDI";
-  state.originSpeed = state.speed = data.playSpeed;
+  state.originSpeed = state.speed = data.playSpeed || 100;
   const track = data.code || data.track;
   state.track = track ? track.replace(/ /g, "").toLocaleLowerCase() : "";
   state.enableNotation = data.isConvertibleScore === null ? true : data.isConvertibleScore;