chore: 优化部分配置

This commit is contained in:
2024-04-09 22:29:07 +08:00
parent 3f1ecef75d
commit e84b1febd8
4 changed files with 8 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ export default defineConfig(({ command, mode }) => {
target: env.VITE_API_BASE_URL, // 后台服务器地址
changeOrigin: true, // 是否允许不同源
secure: false, // 支持https
rewrite: (path) => path.replace(/^\/api/, '/')
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},