diff --git a/vite.config.js b/vite.config.js index 439ab923..16f03886 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,9 +16,11 @@ export default ({ mode, command }) => { // hy // target: 'http://192.168.3.12:13000', // xiaohei - // target: 'http://192.168.3.18:13000', + // target: 'http://192.168.3.65:13000', // lmy // target: 'http://192.168.10.123:8889', + // cg + // target: 'http://192.168.3.2:13000', // target: 'http://192.168.10.101:8888', // 老zyc // target: 'http://192.168.10.75:8777', @@ -33,10 +35,16 @@ export default ({ mode, command }) => { // target: 'http://192.168.10.29:13000', // target: 'http://192.168.3.5:13000',//? // target: 'http://h5uapi.huitongys.com', - target: 'http://test.api.huo5you.com', + target: 'http://test.api.huo5you.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''), }, + '/imgapi': { + target: 'http://127.0.0.1:38088', + changeOrigin: true, + rewrite: path => path.replace(/^\/imgapi/, ''), + logLevel: 'debug', // 启用详细日志 + }, }, }, resolve: {