Prechádzať zdrojové kódy

feat: 渐变速度小节不显示光标

TIANYONG 1 rok pred
rodič
commit
91392e3178

+ 7 - 7
src/view/music-score/index.module.less

@@ -23,10 +23,10 @@
         }
     }
 }
-// .inGradualRange{
-//    :global{
-//         #cursorImg-0{
-//             opacity: 0;
-//         }
-//    } 
-// }
+.inGradualRange{
+   :global{
+        #cursorImg-0{
+            opacity: 0 !important;
+        }
+   } 
+}

+ 1 - 0
src/view/music-score/index.tsx

@@ -125,6 +125,7 @@ export default defineComponent({
 			const activeMeasureIndex = state.times[state.activeNoteIndex]?.measureListIndex || -1;
 			for (const [first, last] of state.gradual) {
 				if (first && last) {
+					// console.log('小节',first.measureIndex,last.measureIndex,activeMeasureIndex)
 					result = first.measureIndex <= activeMeasureIndex && activeMeasureIndex < last.measureIndex;
 					if (result) {
 						break;

+ 1 - 1
src/view/plugins/toggleMusicSheet/index.tsx

@@ -41,7 +41,7 @@ export default defineComponent({
     const trackIdx: any = computed(() => {
       if (partListNames && partListNames.value.length) {
         
-        const idx = partListNames.value.find((item: any) => item.value == state.partIndex).value
+        const idx = partListNames.value.find((item: any) => item.value == state.partIndex)?.value || 0
         console.log(3333,idx)
         return idx
       } else {

+ 2 - 2
vite.config.ts

@@ -67,9 +67,9 @@ export default defineConfig({
 				// target: "https://kt.colexiu.com",
 				// target: "https://test.lexiaoya.cn",
 				// target: "https://dev.kt.colexiu.com",
-				target: "https://test.resource.colexiu.com", // 内容平台开发环境
+				// target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
 				// target: "https://test.resource.colexiu.com",
-				// target: "https://test.kt.colexiu.com",
+				target: "https://test.kt.colexiu.com",
 				changeOrigin: true,
 				rewrite: (path) => path.replace(/^\/instrument/, ""),
 			},