优化代码,提高安全性

This commit is contained in:
zhonghua.li
2026-04-04 10:48:55 +08:00
parent 33085de488
commit 95b10ccc7b
4 changed files with 23 additions and 8 deletions

View File

@@ -57,8 +57,8 @@ module.exports = {
proxy: {
'/api': {
// 可以通过环境变量 VUE_APP_API_BASE_URL 来配置后端地址
// 例如: VUE_APP_API_BASE_URL=http://localhost:8090 npm run dev
target: process.env.VUE_APP_API_BASE_URL || 'http://localhost:8090', // 本地后端服务器地址
// 例如: VUE_APP_API_BASE_URL=http://localhost:8091 npm run dev
target: process.env.VUE_APP_API_BASE_URL || 'http://localhost:8091', // 本地后端服务器地址
// target: 'https://api.huayang-star.com/', // 生产环境后端地址
changeOrigin: true,
pathRewrite: {