黄琪勇 il y a 5 mois
Parent
commit
db762a0728
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      src/views/creation/index-shareRoute.vue
  2. 1 1
      src/views/creation/index.vue

+ 1 - 1
src/views/creation/index-shareRoute.vue

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

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

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