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