abpcoder 3 settimane fa
parent
commit
c910485fe0
2 ha cambiato i file con 18 aggiunte e 17 eliminazioni
  1. 16 16
      back-ui/src/api/dz/papers.js
  2. 2 1
      back-ui/vite.config.js

+ 16 - 16
back-ui/src/api/dz/papers.js

@@ -77,13 +77,13 @@ export function getPaperMajors(query) {
 /// 试卷批次
 export function getPaperBatches() {
     // TODO: remove test code
-    return Promise.resolve({
-        code: 200,
-        data: [
-            {name: '第二批', batchId: 2},
-            {name: '第一批', batchId: 1}
-        ]
-    })
+    // return Promise.resolve({
+    //     code: 200,
+    //     data: [
+    //         {name: '第二批', batchId: 2},
+    //         {name: '第一批', batchId: 1}
+    //     ]
+    // })
 
     return request({
         url: '/learn/test/list',
@@ -183,15 +183,15 @@ export function getPaperDetail(query) {
 
 export function getPaperClassStatistic(query) {
     // TODO: remove test code
-    return Promise.resolve({
-        code: 200,
-        data: [
-            {classId: 0, className: '2501班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15},
-            {classId: 0, className: '2502班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15},
-            {classId: 0, className: '2503班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15},
-            {classId: 0, className: '2504班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15}
-        ]
-    })
+    // return Promise.resolve({
+    //     code: 200,
+    //     data: [
+    //         {classId: 0, className: '2501班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15},
+    //         {classId: 0, className: '2502班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15},
+    //         {classId: 0, className: '2503班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15},
+    //         {classId: 0, className: '2504班', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15}
+    //     ]
+    // })
     // 2025.10.16 新增班级统计,用于组卷生成
     const queryDemo = {
         buildType: '', // 试卷构建类型,定义枚举?

+ 2 - 1
back-ui/vite.config.js

@@ -3,7 +3,8 @@ import path from 'path'
 import createVitePlugins from './vite/plugins'
 import tailwindcss from '@tailwindcss/vite'
 
-const baseUrl = 'http://localhost:8080' // 后端接口
+// const baseUrl = 'http://localhost:8080' // 后端接口
+const baseUrl = 'https://dz.shineking.top/prod-api' // 后端接口
 
 // https://vitejs.dev/config/
 export default defineConfig(({ mode, command }) => {