Browse Source

feat: 修改

TIANYONG 1 month ago
parent
commit
bffef4fa53
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/page-instrument/custom-plugins/work-home/index.tsx

+ 8 - 0
src/page-instrument/custom-plugins/work-home/index.tsx

@@ -126,6 +126,14 @@ export default defineComponent({
 			}
 		);
 		watch(
+			() => state.showWorkDonePop,
+			() => {
+				if (state.showWorkDonePop && state.playState === "play") {
+					togglePlay("paused")
+				}
+			}
+		);
+		watch(
 			() => training.trainingTimeSecond,
 			() => {
 				// console.log('累积时间',111,state.isWorkDone,training.trainingTimeSecond,training.times * 60)