|
@@ -1,61 +1,45 @@
|
|
let proxy = {
|
|
let proxy = {
|
|
- "/api/ecs_core": {
|
|
|
|
- target: "http://ecs-dev.qmth.com.cn:8000", //代理跨域转地址,基础信息
|
|
|
|
- changeOrigin: true
|
|
|
|
- },
|
|
|
|
- // "/api/logic/portal": {
|
|
|
|
- // target: " http://ecs-dev.qmth.com.cn:8018", //基础信息 门户 王伟
|
|
|
|
- // changeOrigin: true
|
|
|
|
- // },
|
|
|
|
- "/api/ecs_exam_work": {
|
|
|
|
- target: "http://ecs-dev.qmth.com.cn:8001", // 考务 王伟
|
|
|
|
- changeOrigin: true
|
|
|
|
- },
|
|
|
|
- // "/api/ecs_outlet": {
|
|
|
|
- // target: " http://ecs-dev.qmth.com.cn:8007", // 王伟
|
|
|
|
- // changeOrigin: true
|
|
|
|
- // },
|
|
|
|
- "/facepp_api": {
|
|
|
|
- target: "http://ecs-dev.qmth.com.cn:8898", // 陈恳
|
|
|
|
|
|
+ "/api": {
|
|
|
|
+ target: "http://192.168.10.39:8878", // 考务 王伟
|
|
changeOrigin: true
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-const stu = [
|
|
|
|
- "/api/ecs_oe",
|
|
|
|
- "/api/online_exam_course",
|
|
|
|
- "/api/sys_param",
|
|
|
|
- "/api/exam_record",
|
|
|
|
- "/api/exam_control",
|
|
|
|
- "/api/exam_question",
|
|
|
|
- "/api/exam_score",
|
|
|
|
- "/api/practice_course",
|
|
|
|
- "/api/practice_detail",
|
|
|
|
- "/api/practice_record",
|
|
|
|
- "/api/exam_captures",
|
|
|
|
- "/api/face_capture",
|
|
|
|
- "/api/face_verify",
|
|
|
|
- "/api/offline_exam"
|
|
|
|
-];
|
|
|
|
|
|
+// const stu = [
|
|
|
|
+// "/api/ecs_oe",
|
|
|
|
+// "/api/ecs_oe_student/",
|
|
|
|
+// "/api/sys_param",
|
|
|
|
+// "/api/exam_record",
|
|
|
|
+// "/api/exam_control",
|
|
|
|
+// "/api/exam_question",
|
|
|
|
+// "/api/exam_score",
|
|
|
|
+// "/api/practice_course",
|
|
|
|
+// "/api/practice_detail",
|
|
|
|
+// "/api/practice_record",
|
|
|
|
+// "/api/exam_captures",
|
|
|
|
+// "/api/face_capture",
|
|
|
|
+// "/api/face_verify",
|
|
|
|
+// "/api/offline_exam"
|
|
|
|
+// ];
|
|
|
|
|
|
-for (const s of stu) {
|
|
|
|
- proxy[s] = {
|
|
|
|
- target: "http://ecs-dev.qmth.com.cn:8003", // 陈恳
|
|
|
|
- changeOrigin: true
|
|
|
|
- };
|
|
|
|
-}
|
|
|
|
|
|
+// for (const s of stu) {
|
|
|
|
+// proxy[s] = {
|
|
|
|
+// target: "http://ecs-dev.qmth.com.cn:8003", // 陈恳
|
|
|
|
+// changeOrigin: true
|
|
|
|
+// };
|
|
|
|
+// }
|
|
|
|
|
|
-const mock = [{ source: "/api/mock/exam_question", dest: "/examQuestions" }];
|
|
|
|
|
|
+// const mock = [{ source: "/api/mock/exam_question", dest: "/examQuestions" }];
|
|
|
|
|
|
-for (const m of mock) {
|
|
|
|
- proxy[m.source] = {
|
|
|
|
- target: "http://localhost:3000/",
|
|
|
|
- changeOrigin: true,
|
|
|
|
- pathRewrite: {
|
|
|
|
- ".*": m.dest
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
-}
|
|
|
|
|
|
+// for (const m of mock) {
|
|
|
|
+// proxy[m.source] = {
|
|
|
|
+// target: "http://localhost:3000/",
|
|
|
|
+// changeOrigin: true,
|
|
|
|
+// pathRewrite: {
|
|
|
|
+// ".*": m.dest
|
|
|
|
+// }
|
|
|
|
+// };
|
|
|
|
+// }
|
|
|
|
|
|
var webpack = require("webpack");
|
|
var webpack = require("webpack");
|
|
module.exports = {
|
|
module.exports = {
|