diff --git a/app-dm/src/TeacherPages/TestManage/SendTest.jsx b/app-dm/src/TeacherPages/TestManage/SendTest.jsx index 85c545b..33ed543 100644 --- a/app-dm/src/TeacherPages/TestManage/SendTest.jsx +++ b/app-dm/src/TeacherPages/TestManage/SendTest.jsx @@ -83,6 +83,7 @@ function SendTest(){ const SendTrainBtn=()=>{ if(selectedItems.length>0 && (HourValue || MinValue)&&StopTime){ SendTrainTest() + window.location.href='/student/managetest' }else{ alert('发布信息未完全') } diff --git a/app-dm/src/setupProxy.js b/app-dm/src/setupProxy.js index 98d5149..8a77b83 100644 --- a/app-dm/src/setupProxy.js +++ b/app-dm/src/setupProxy.js @@ -4,7 +4,7 @@ module.exports = function(app) { app.use( '/api', // 如果请求路径匹配'/api',则进行代理 createProxyMiddleware({ - target: 'http://127.0.0.1:8000', // 目标后端服务地址 + target: 'http://127.0.0.1:5000', // 目标后端服务地址 changeOrigin: true, }) );