b6950902 by chentao

修改路由配置

1 parent efe05342
......@@ -28,18 +28,18 @@ export default defineConfig(({ mode, command }) => {
open: true,
forceHttps: false,
proxy: {
'/dev-api': {
target: 'http://localhost:8082/',
changeOrigin: true,
secure: false,
rewrite: (p) => p.replace(/^\/dev-api/, '')
},
'/prod-api': {
target: 'http://localhost:8080/',
changeOrigin: true,
secure: false,
rewrite: (p) => p.replace(/^\/prod-api/, '')
}
// '/dev-api': {
// target: 'http://legao.jimilicai.com/prod-api/',
// changeOrigin: true,
// secure: false,
// rewrite: (p) => p.replace(/^\/dev-api/, '')
// },
// '/prod-api': {
// target: 'http://localhost:8080/',
// changeOrigin: true,
// secure: false,
// rewrite: (p) => p.replace(/^\/prod-api/, '')
// }
}
},
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!