This commit is contained in:
胡圣锋 2025-11-18 05:52:53 +08:00
parent b6ffe1e00a
commit ebf3c85016
4 changed files with 6 additions and 6 deletions

View File

@ -125,7 +125,7 @@ referer:
# 防盗链开关
enabled: false
# 允许的域名列表
allowed-domains: localhost,127.0.0.1,1.15.149.240
allowed-domains: localhost,127.0.0.1
# 防止XSS攻击
xss:

View File

@ -5,4 +5,4 @@ VUE_APP_TITLE = 心理健康测评系统
ENV = 'production'
# 管理系统/生产环境
VUE_APP_BASE_API = 'http://1.15.149.240:30081'
VUE_APP_BASE_API = '/api'

View File

@ -50,7 +50,7 @@ export function logout() {
// 获取验证码
export function getCodeImg() {
return request({
url: 'http://1.15.149.240:30081/captchaImage',
url: '/api/captchaImage',
headers: {
isToken: false
},

View File

@ -11,10 +11,10 @@ const name = process.env.VUE_APP_TITLE || '心理健康测评系统' // 网页
// 后端接口地址配置
// 本地开发环境:使用 localhost:30081
// 服务器环境:使用 http://1.15.149.240:30081
const baseUrl = process.env.NODE_ENV === 'development'
// 服务器环境:使用 http://****:30081
const baseUrl = process.env.NODE_ENV === 'development'
? 'http://localhost:30081' // 本地开发环境
: 'http://1.15.149.240:30081' // 生产环境
: '/api' // 生产环境
const port = process.env.port || process.env.npm_config_port || 80 // 端口