Explorar o código

feat: 速度默认值

TIANYONG hai 1 ano
pai
achega
7194b572bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;