提交 48035a0d authored 作者: lidongxu's avatar lidongxu

refactor(vite.config.js): 修改 proxy 配置添加 dev- 前缀

上级 dc9a0699
...@@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => { ...@@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => {
'/dev-promotion-api': { '/dev-promotion-api': {
target: 'https://sfa-qa.wxl66.cn/promotion-api', target: 'https://sfa-qa.wxl66.cn/promotion-api',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/promotion-api/, '') rewrite: (p) => p.replace(/^\/dev-promotion-api/, '')
}, },
'/ql_local': { '/ql_local': {
target: 'http://192.168.131.48', target: 'http://192.168.131.48',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论