init
This commit is contained in:
@@ -10,7 +10,7 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/kiosk-upload': {
|
'/kiosk-upload': {
|
||||||
// 将此替换为你的后端 baseUrl,例如 'https://api.example.com'
|
// 将此替换为你的后端 baseUrl,例如 'https://api.example.com'
|
||||||
target: 'https://bmapi.tttzai.com/',
|
target: 'https://bmapi.tttzai.com',
|
||||||
changeOrigin: true, // 修改 Host 头为 target,避免后端基于 Host 的限制
|
changeOrigin: true, // 修改 Host 头为 target,避免后端基于 Host 的限制
|
||||||
secure: false, // 如果是自签名 HTTPS,在开发环境禁用证书校验
|
secure: false, // 如果是自签名 HTTPS,在开发环境禁用证书校验
|
||||||
// 后端路径不同才需要 rewrite,例如后端路径是 '/api/upload'
|
// 后端路径不同才需要 rewrite,例如后端路径是 '/api/upload'
|
||||||
|
|||||||
Reference in New Issue
Block a user