|
@@ -114,7 +114,7 @@ export default defineComponent({
|
|
|
let selectTimes = state.times
|
|
|
actualBeatLength = Math.round(state.times[0].fixtime * 1000 / 1)
|
|
|
// 如果是阶段评测,选取该阶段的times
|
|
|
- if (state.isSelectMeasureMode) {
|
|
|
+ if (state.isSelectMeasureMode && state.section.length) {
|
|
|
const startIndex = state.times.findIndex(
|
|
|
(n: any) => n.noteId == state.section[0].noteId
|
|
|
)
|
|
@@ -268,6 +268,10 @@ export default defineComponent({
|
|
|
showToast("上传成功");
|
|
|
};
|
|
|
|
|
|
+ const startBtnHandle = () => {
|
|
|
+ handleConnect();
|
|
|
+ handleStartBegin();
|
|
|
+ }
|
|
|
onMounted(() => {
|
|
|
evaluatingData.isDisabledPlayMusic = true;
|
|
|
handlePerformDetection();
|
|
@@ -276,7 +280,9 @@ export default defineComponent({
|
|
|
<div>
|
|
|
<Transition name="pop-center">
|
|
|
{evaluatingData.websocketState && !evaluatingData.startBegin && evaluatingData.checkEnd && (
|
|
|
- <div class={styles.startBtn} onClick={handleStartBegin}>
|
|
|
+ <div class={styles.startBtn} onClick={() => {
|
|
|
+ startBtnHandle()
|
|
|
+ }}>
|
|
|
<img src={iconEvaluat.evaluatingStart} />
|
|
|
</div>
|
|
|
)}
|