Browse Source

修改vit配置

dev
马远东 4 months ago
parent
commit
35019ea45a
  1. 10
      vite.config.js

10
vite.config.js

@ -16,9 +16,11 @@ export default ({ mode, command }) => {
// hy // hy
// target: 'http://192.168.3.12:13000', // target: 'http://192.168.3.12:13000',
// xiaohei // xiaohei
// target: 'http://192.168.3.18:13000', // target: 'http://192.168.3.65:13000',
// lmy // lmy
// target: 'http://192.168.10.123:8889', // target: 'http://192.168.10.123:8889',
// cg
// target: 'http://192.168.3.2:13000',
// target: 'http://192.168.10.101:8888', // target: 'http://192.168.10.101:8888',
// 老zyc // 老zyc
// target: 'http://192.168.10.75:8777', // target: 'http://192.168.10.75:8777',
@ -37,6 +39,12 @@ export default ({ mode, command }) => {
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),
}, },
'/imgapi': {
target: 'http://127.0.0.1:38088',
changeOrigin: true,
rewrite: path => path.replace(/^\/imgapi/, ''),
logLevel: 'debug', // 启用详细日志
},
}, },
}, },
resolve: { resolve: {

Loading…
Cancel
Save