Browse Source

fix: 渐变小节索引取值问题修复

TIANYONG 6 months ago
parent
commit
0b46e62172
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/helpers/calcSpeed.ts
  2. 1 1
      vite.config.ts

+ 2 - 2
src/helpers/calcSpeed.ts

@@ -160,13 +160,13 @@ export const getGradualLengthByXml = (xml: string) => {
 	// 结尾处手动插入一个音符节点
 	eles.push({
 		ele: notes[notes.length - 1],
-		index: notes.length-1,
+		index: notes.length,
 		noteInMeasureIndex: 0,
 		textContent: "",
 		type: "metronome",
 		allDuration: 1,
 		leftDuration: 0,
-		measureIndex: measures.length-1,
+		measureIndex: measures.length,
 	});
 
 	const gradualNotes: GradualNote[] = [];

+ 1 - 1
vite.config.ts

@@ -76,7 +76,7 @@ export default defineConfig({
         // target: "https://kt.colexiu.com",
         // target: "https://test.lexiaoya.cn",
         // target: "https://kt.colexiu.com",
-        target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
+        target: "https://dev.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
         // target: "https://test.kt.colexiu.com",
         // target: "https://mec.colexiu.com",
         changeOrigin: true,