功能更新
This commit is contained in:
@@ -23,6 +23,13 @@ export default defineConfig({
|
||||
target: 'http://127.0.0.1:8000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '')
|
||||
},
|
||||
// 活动小程序码静态资源:后端 s.AddStaticPath("/qrcode", "manifest/qrcode"),
|
||||
// 返回的是相对路径(如 /qrcode/event_12_xxx.png),不在 /api 前缀下,
|
||||
// 故需单独代理且 **不做 rewrite**,否则开发环境码图 404。
|
||||
'/qrcode': {
|
||||
target: 'http://127.0.0.1:8000',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user