优化代码,提高安全性
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user