Browse Source

forms.clientType

liushengqiang 1 year ago
parent
commit
dde8cd07c4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/exercise-record/exercis-detail.tsx

+ 3 - 3
src/views/exercise-record/exercis-detail.tsx

@@ -109,7 +109,7 @@ export default defineComponent({
     }
 
     const getDetail = async () => {
-      if(globalState.platformType === 'TEACHER'){
+      if(forms.clientType === 'TEACHER'){
         try {
           const res = await request.post(`${platformApi.value}/teacher/detail`, {
             data:{
@@ -215,7 +215,7 @@ export default defineComponent({
                 </div>
                 <div class={styles.infoMsg}>
                   <p>{infoDetail.value.nickname}</p>
-                  {globalState.platformType === 'TEACHER' ? <NoticeBar class={styles.teacherSubject}>
+                  {forms.clientType === 'TEACHER' ? <NoticeBar class={styles.teacherSubject}>
                     {infoDetail.value?.subjectNames?.map((item: any) => {
                       return <div class={styles.tag}>{item}</div>
                     })}
@@ -344,7 +344,7 @@ export default defineComponent({
             default: () => (
               <div class={styles.DialogConent}>
                 <p>
-                  练习数据是{globalState.platformType == 'TEACHER' ? '' : '学员'}通过云教练自主练习的数据统计,可根据时间段查询{globalState.platformType == 'TEACHER' ? '' : '学员'}的练习天数和练习时长{' '}
+                  练习数据是{forms.clientType == 'TEACHER' ? '' : '学员'}通过云教练自主练习的数据统计,可根据时间段查询{forms.clientType == 'TEACHER' ? '' : '学员'}的练习天数和练习时长{' '}
                 </p>
                 <p>练习天数:当天有曲目播放或测评记录即算练习</p>
                 <p>练习时长:曲目播放和曲目测评的时长总和</p>