Browse Source

兼容乐器指法

liushengqiang 2 years ago
parent
commit
2822dd7084
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/page-instrument/view-figner/index.tsx

+ 3 - 1
src/page-instrument/view-figner/index.tsx

@@ -16,6 +16,7 @@ import {
 	ITypeFingering,
 	IVocals,
 	getFingeringConfig,
+	mappingVoicePart,
 	subjectFingering,
 } from "/src/view/fingering/fingering-config";
 import { Howl } from "howler";
@@ -47,7 +48,8 @@ export default defineComponent({
 	setup(props, { emit }) {
 		const query = getQuery();
 		const browsInfo = browser();
-		const subject = props.isComponent ? props.subject || "pan-flute" : query.code || "pan-flute";
+		const code = mappingVoicePart(query.code, "INSTRUMENT")
+		const subject = props.isComponent ? props.subject || "pan-flute" : code || "pan-flute";
 		const data = reactive({
 			loading: true,
 			subject: subject,