소스 검색

只有 app统计时长

liushengqiang 2 년 전
부모
커밋
ce3c8e125d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/page-instrument/view-detail/index.tsx

+ 2 - 1
src/page-instrument/view-detail/index.tsx

@@ -48,6 +48,7 @@ import FollowModel from "../follow-model";
 import RecordingTime from "../custom-plugins/recording-time";
 import WorkIndex from "../custom-plugins/work-index";
 import TheMusicList from "../component/the-music-list";
+import { storeData } from "/src/store";
 
 /** 需要处理频率的乐器
  * 120: 竖笛
@@ -376,7 +377,7 @@ export default defineComponent({
 				{state.musicRendered && (
 					<>
 						{/* 统计训练时长 */}
-						<RecordingTime />
+						{storeData.isApp && <RecordingTime />}
 						{/* 作业 */}
 						{query.workRecord && <WorkIndex />}
 						{followData.start + ""}