Prechádzať zdrojové kódy

feat: 谱面编辑初始化

TIANYONG 1 rok pred
rodič
commit
443008ace3

+ 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[],