瀏覽代碼

feat: 修改

TIANYONG 1 月之前
父節點
當前提交
bffef4fa53
共有 1 個文件被更改,包括 8 次插入0 次删除
  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)