Commit 994306b9 by 李宁

1

1 parent 05fdca4a
...@@ -15,4 +15,16 @@ export default defineConfig({ ...@@ -15,4 +15,16 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))
}, },
}, },
server: {
port: 3000,
open: true,
proxy: {
// API 请求代理配置
'/crm': {
target: 'http://thall.51xinpai.cn/', // 后端服务地址,根据你的实际情况修改
changeOrigin: true,
rewrite: (path) => path.replace(/^\/crm/, '/crm')
},
}
},
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!