diff --git a/vite.config.js b/vite.config.js index 0a120c4..c87e123 100644 --- a/vite.config.js +++ b/vite.config.js @@ -34,13 +34,14 @@ ext: '.gz', // 生成的压缩包后缀 }), ], + // 所有转发都是匹配huangji server: { port: 8863, host: '0.0.0.0', proxy: { '/api': { - // target: 'http://192.168.16.100:6068/huangji/', //陈迁 16.100 - target: 'http://192.168.10.48:8869/huangji/', //陈迁 16.100 + target: 'http://192.168.16.100:6068/huangji/', //陈迁 16.100 + // target: 'http://192.168.10.48:8869/huangji/', //陈迁 16.100 changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), }, @@ -55,8 +56,8 @@ rewrite: (path) => path.replace(/^\/modelFilesJson/, ''), }, '/huangji_v1': { - // target: 'http://192.168.16.100:6068/huangji_v1/', //陈迁 16.100 - target: 'http://192.168.10.48:8869/huangji_v1', //陈迁 16.100 + target: 'http://192.168.16.100:6068/huangji/', //陈迁 16.100 + // target: 'http://192.168.10.48:8869/huangji', //陈迁 16.100 changeOrigin: true, rewrite: (path) => path.replace(/^\/huangji_v1/, ''), },