ソースを参照

fix:修复开始作业的bug

廖彦舟 1 年間 前
コミット
31a4ceef5a

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

@@ -1,7 +1,7 @@
 import axios from "axios";
 
 // 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 = 'https://air.seec.seecoder.cn/'
 

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

@@ -85,9 +85,9 @@ let data = reactive<IAssignment>({
 function handleStart(){
   getEngagement()
   console.log(data.type)
-  if(data.type == 'writing'){
+  if(data.type == 'writing' || data.type == '写作'){
     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`)
   }
 }