黄琪勇 4 months ago
parent
commit
6479f9fcfa
2 changed files with 2 additions and 2 deletions
  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{
         }
         // 五线谱