Browse Source

fix:修复开始作业的bug

廖彦舟 1 year ago
parent
commit
31a4ceef5a
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/apis/axios.config.ts
  2. 2 2
      src/views/HomeworkPage/component/HomeworkDetail.vue

+ 1 - 1
src/apis/axios.config.ts

@@ -1,7 +1,7 @@
 import axios from "axios";
 import axios from "axios";
 
 
 // const BASEURL = 'http://47.111.23.171:8081'
 // const BASEURL = 'http://47.111.23.171:8081'
-const BASEURL = 'http://localhost:8080'
+const BASEURL = 'http://localhost:8082'
 // const BASEURL = 'http://8.130.126.86:8080'
 // const BASEURL = 'http://8.130.126.86:8080'
 // const BASEURL = 'https://air.seec.seecoder.cn/'
 // const BASEURL = 'https://air.seec.seecoder.cn/'
 
 

+ 2 - 2
src/views/HomeworkPage/component/HomeworkDetail.vue

@@ -85,9 +85,9 @@ let data = reactive<IAssignment>({
 function handleStart(){
 function handleStart(){
   getEngagement()
   getEngagement()
   console.log(data.type)
   console.log(data.type)
-  if(data.type == 'writing'){
+  if(data.type == 'writing' || data.type == '写作'){
     router.push(`/home/assignment/${assignmentId}/edit`)
     router.push(`/home/assignment/${assignmentId}/edit`)
-  } else if(data.type == 'speaking'){
+  } else if(data.type == 'speaking' || data.type == 'AI对话'){
     router.push(`/home/assignment/${assignmentId}/aispeaking`)
     router.push(`/home/assignment/${assignmentId}/aispeaking`)
   }
   }
 }
 }