Browse Source

fix: web后台切换谱面大小修改

TIANYONG 4 months ago
parent
commit
0a940ea1e4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/helpers/metronome.ts
  2. 1 1
      src/state.ts

+ 1 - 1
src/helpers/metronome.ts

@@ -182,7 +182,7 @@ class Metronome {
 	
 	// 暂停的时候,点击音符,需要找到对应的节拍器的位置
 	findMetronomePosition = (currentTime: number) => {
-		console.log('取消选段',currentTime)
+		// console.log('取消选段',currentTime)
 		const originTime = currentTime;
 		// if (!state.sectionStatus){
 		// 	currentTime = setCurrentTime(currentTime);

+ 1 - 1
src/state.ts

@@ -1818,7 +1818,7 @@ const setState = (data: any, index: number) => {
 
   // 如果是PC端,放大曲谱
   state.platform = query.platform?.toLocaleUpperCase() || "";
-  if (state.platform === IPlatform.PC) {
+  if (state.platform === IPlatform.PC || state.systemType === 'web') {
     // pc端,谱面默认初始大小设置为1.5
     state.zoom = 1.5;
     if (query.zoom <= 1) {