Browse Source

fix:修复批改作业详情跳转bug

lalala 1 year ago
parent
commit
5e7538656b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/HomeworkPage/index.vue

+ 2 - 2
src/views/HomeworkPage/index.vue

@@ -118,9 +118,9 @@
   })
   //  查看教师批改结果 跳转至批改页面
   const viewCorrection = (assignmentId:number,studentId:number, type:string, assignmentName:string) => {
-    if(type === '写作'){
+    if(type === '写作' || type ==='writing'){
       router.push(`/home/assignment/${assignmentId}/correct?studentId=${studentId}`)
-    } else if(type === 'AI口语'){
+    } else if(type === 'AI口语' || type === 'speaking'){
       router.push({
       path: `/home/assignment/${assignmentId}/airecord`,
       query:{