Selaa lähdekoodia

Merge branch '2023-8-28'

liushengqiang 1 vuosi sitten
vanhempi
commit
155bb23c0d
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      src/pc/home/index.tsx
  2. 2 2
      src/pc/home/runtime.ts

+ 1 - 1
src/pc/home/index.tsx

@@ -1605,7 +1605,7 @@ export default defineComponent({
 					abc = new DOMParser().parseFromString(abc, "text/xml");
 					// // console.log("🚀 ~ abc:", abc);
 					abc = (window as any).vertaal(abc, { p: "f", t: 1, u: 0, v: 3, mnum: 0 });
-					// console.log(abc);
+					// console.log('abc', abc);
 					const parseData = ABCJS.renderAbc("importRef", abc[0], { responsive: "resize" });
 					console.log("🚀 ~ parseData:", parseData);
 					abcData.abc = formateAbc(parseData[0], { subjectCode: abcData.abc.subjectCode });

+ 2 - 2
src/pc/home/runtime.ts

@@ -197,10 +197,10 @@ export const renderMeasures = (abc: IAbc, option?: IRenderMeasuresOption) => {
 	let text = `X:1\n`;
 
 	if (option?.showTitle) {
-		abc.title && (text += abc.title + "\n");
+		abc.title && (text += `T:${abc.title}` + "\n");
 	}
 	if (option?.showCreator) {
-		abc.creator && (text += abc.creator + "\n");
+		abc.creator && (text += `R:${abc.creator}` + "\n");
 	}
 	abc.celf && (text += abc.celf + "\n");
 	abc.meter && (text += abc.meter + "\n");