功能更新

This commit is contained in:
李琦
2026-09-29 10:58:25 +08:00
parent d2946f9512
commit 1fa62d10e1
47 changed files with 9455 additions and 408 deletions

View File

@@ -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
}
}
}