Selaa lähdekoodia

fix: 修复ts类型bug

weijin 4 vuotta sitten
vanhempi
commit
8fa4398639
3 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 1 1
      src/api/prefix.ts
  2. 2 1
      src/views/teacher/ExamCreate.vue
  3. 1 1
      vue.config.js

+ 1 - 1
src/api/prefix.ts

@@ -7,6 +7,6 @@ export const JUDGE_MODULE = BASE_URL + '/judge'
 export const REPORT_MODULE = BASE_URL + '/report'
 export const RECORD_MODULE = BASE_URL + '/record'
 
-const ANALYSIS_URL = '/eval'
+const ANALYSIS_URL = '/apis'
 
 export const ANALYSIS_MODULE = ANALYSIS_URL + '/analysis'

+ 2 - 1
src/views/teacher/ExamCreate.vue

@@ -369,7 +369,8 @@ export default Vue.extend({
         endTime: this.endDate + ' ' + this.endTime + ':00',
         comment: this.comment,
         antiCheating: this.antiCheating,
-        isPublic: !this.isPrivate
+        isPublic: !this.isPrivate,
+        isHidden: false
       } as ExamSerializer
       console.log('创建评测', obj)
       createExam(obj).then(({ data }) => {

+ 1 - 1
vue.config.js

@@ -11,7 +11,7 @@ module.exports = {
         ws: true,
         changeOrigin: true
       },
-      '^/eval': {
+      '^/apis': {
         // target: 'http://localhost:8089/',
         target: 'https://analysis.seec.seecoder.cn/',
         ws: true,