skyblued 2 lat temu
rodzic
commit
267589b1e2

+ 1 - 0
src/subpages/colexiu/buttons/index.tsx

@@ -157,6 +157,7 @@ export default defineComponent({
         SettingState.sett.type = 'jianpu'
         SettingState.sett.keySignature = true
       }
+      sessionStorage.setItem('notation', SettingState.sett.type)
     }
     const musicType = (type: string) => {
       if (type === 'staff') {

+ 2 - 2
src/subpages/colexiu/uses/use-app.ts

@@ -160,8 +160,8 @@ export const useDetail = (id: number | string): [Ref<ShaeetStatusType>, Ref<Musi
             ? getSubjectIdCode(res.data.background[0].musicSubject)
             : '',
       }
-      // notation: 是能转简谱 0: 不可以,需要设置成五线谱模式
-      if (data.value.notation == 0) {
+      // notation: 是能转简谱 0: 不可以,需要设置成五线谱模式, 是否是切换简谱
+      if (data.value.notation == 0 || !sessionStorage.getItem('notation')) {
         SettingState.sett.type = 'staff'
       }
       // 设置是否特殊曲谱, 是特殊曲谱取反(不理解之前的思考逻辑), 使用后台设置的速度