|
@@ -116,7 +116,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|
|
// 这里的意思是 以/api开头发送的请求都会被转发到 http://xxx:9000
|
|
|
[env.VITE_APP_API_BASEURL]: {
|
|
|
// target: 'http://192.168.50.133:9999',
|
|
|
- target: 'http://192.168.50.133:9999',
|
|
|
+ target: 'http://localhost:9999',
|
|
|
// 改变 Host Header
|
|
|
changeOrigin: true,
|
|
|
rewrite: (path) => path.replace(new RegExp(`^${env.VITE_APP_API_BASEURL}`), '')
|