Commit fff4f329 by xinla

--no commit message

1 parent 0902ef8a
...@@ -59,7 +59,7 @@ export default defineConfig(async ({ command, mode }) => { ...@@ -59,7 +59,7 @@ export default defineConfig(async ({ command, mode }) => {
proxy: { proxy: {
// https://cn.vitejs.dev/config/#server-proxy // https://cn.vitejs.dev/config/#server-proxy
'/api': { '/api': {
target: env.DOMAIN, target: env.BASE_API,
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, ''), rewrite: (p) => p.replace(/^\/api/, ''),
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!