lm 1 неделя назад
Родитель
Сommit
7a87ec9689
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      vite.config.ts

+ 6 - 5
vite.config.ts

@@ -4,7 +4,7 @@ import path from 'path' // 引入 Node.js 的 path 模块
 // https://vite.dev/config/
 export default defineConfig({
 
-  base:process.env.NODE_ENV === 'production' ? ' /evaluation/' : '/' ,  //测试环境配置,生产环境不需要
+  base:process.env.NODE_ENV === 'production' ? ' /evaluationteacher/' : '/' ,  //测试环境配置,生产环境不需要
 
   plugins: [vue()],
   resolve: {
@@ -30,14 +30,15 @@ export default defineConfig({
       // },
       '/teaching':{
         // target:'https://dev.k12100.net/admin/adminApi',
-        target:'https://index.k12100.net/teaching/', //教师端 测试环境
-        // target:'http://192.168.1.58:47001/',  //教师端 本地
+        // target:'https://index.k12100.net/teaching/', //教师端 测试环境
+        target:'http://192.168.1.32:47001/',  //教师端 本地
+        // target:'http://127.0.1.1:47001/',  //教师端 本地
         changeOrigin:true,
         rewrite:path => path.replace(/^\/teaching/, '')
       },
       '/student':{
-        target:'https://index.k12100.net/student/',    //学生端 测试环境
-        // target:'http://192.168.1.58:47003/',    //学生端 本地
+        // target:'https://index.k12100.net/student/',    //学生端 测试环境
+        target:'http://192.168.1.32:47003/',    //学生端 本地
         changeOrigin:true,
         rewrite:path => path.replace(/^\/student/, '')
       },