浏览代码

feat: 谱面编辑初始化

TIANYONG 1 年之前
父节点
当前提交
443008ace3
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 6 2
      src/view/plugins/move-music-score/index.tsx
  2. 0 2
      src/view/selection/index.tsx

+ 6 - 2
src/view/plugins/move-music-score/index.tsx

@@ -386,8 +386,12 @@ export const renderForMoveData = () => {
 			extStyleConfigJson = {};
 		}
 	}
-	if (!extStyleConfigJson || !extStyleConfigJson?.[moveData.partIndex]) return;
-	initSvgId();
+	if (!extStyleConfigJson || !extStyleConfigJson?.[moveData.partIndex]){
+		initSvgId();
+		return
+	} else {
+		initSvgId();
+	}
 	const list = extStyleConfigJson?.[moveData.partIndex];
 	if (list && Array.isArray(list)) {
 		console.log("🚀 ~ list", list);

+ 0 - 2
src/view/selection/index.tsx

@@ -9,8 +9,6 @@ import MoveMusicScore, { moveData, renderForMoveData } from "../plugins/move-mus
 import { useRoute } from "vue-router";
 import { getQuery } from "/src/utils/queryString";
 
-const query: any = getQuery();
-
 const selectData = reactive({
 	notes: [] as any[],
 	staves: [] as any[],