浏览代码

fix: 选段样式

TIANYONG 1 年之前
父节点
当前提交
87696fa1ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/view/selection/index.tsx

+ 1 - 1
src/view/selection/index.tsx

@@ -169,7 +169,7 @@ export default defineComponent({
 					}
 					if (state.section.length === 2) {
 						// 实际的结束位置
-						const actualEndIndex = state.userChooseEndIndex
+						const actualEndIndex = state.userChooseEndIndex > state.section[1].MeasureNumberXML ? state.userChooseEndIndex : state.section[1].MeasureNumberXML
 						// 选段预备拍背景
 						if (state.sectionFirst && item.MeasureNumberXML === state.sectionFirst.MeasureNumberXML) {
 							return styles.prepareStaveBox;