黄琪勇 hai 8 meses
pai
achega
6479f9fcfa
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/views/creation/index-share.tsx
  2. 1 1
      src/views/creation/index.tsx

+ 1 - 1
src/views/creation/index-share.tsx

@@ -391,7 +391,7 @@ export default defineComponent({
             const jsonConfig = JSON.parse(res.data.jsonConfig)
             jsonConfig.speedRate && (staffState.speedRate = jsonConfig.speedRate)
             jsonConfig.musicRenderType && (staffState.musicRenderType = jsonConfig.musicRenderType)
-            jsonConfig.partIndex && (staffState.partIndex = jsonConfig["part-index"])
+            jsonConfig["part-index"] && (staffState.partIndex = jsonConfig["part-index"])
           }catch{
           }
           // 五线谱

+ 1 - 1
src/views/creation/index.tsx

@@ -546,7 +546,7 @@ export default defineComponent({
           const jsonConfig = JSON.parse(res.data.jsonConfig)
           jsonConfig.speedRate && (staffState.speedRate = jsonConfig.speedRate)
           jsonConfig.musicRenderType && (staffState.musicRenderType = jsonConfig.musicRenderType)
-          jsonConfig.partIndex && (staffState.partIndex = jsonConfig["part-index"])
+          jsonConfig["part-index"] && (staffState.partIndex = jsonConfig["part-index"])
         }catch{
         }
         // 五线谱