Explorar o código

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

lalala hai 1 ano
pai
achega
5e7538656b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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:{