|
@@ -1726,12 +1726,15 @@ const setState = (data: any, index: number) => {
|
|
|
// pc端,谱面默认初始大小设置为1.5
|
|
|
state.zoom = 1.5;
|
|
|
if (query.zoom <= 1) {
|
|
|
- state.zoom = query.zoom || state.zoom;
|
|
|
+ state.zoom = query.zoom ? Number(query.zoom) : state.zoom;
|
|
|
} else {
|
|
|
state.zoom = localStorage.getItem('scoreZoom') ? Number(localStorage.getItem('scoreZoom')) : state.zoom
|
|
|
}
|
|
|
state.enableEvaluation = false;
|
|
|
}
|
|
|
+ if (storeData.isApp) {
|
|
|
+ state.zoom = localStorage.getItem('scoreZoom') ? Number(localStorage.getItem('scoreZoom')) : state.zoom
|
|
|
+ }
|
|
|
/**
|
|
|
* 默认渲染什么谱面类型 & 能否转谱逻辑
|
|
|
* 渲染类型:首先取url参数musicRenderType,没有该参数则取musicalInstruments字段匹配的当前分轨的defaultScore,没有匹配到则取默认值('firstTone')
|