瀏覽代碼

只有 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 + ""}