修改IP
This commit is contained in:
parent
b6ffe1e00a
commit
ebf3c85016
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ VUE_APP_TITLE = 心理健康测评系统
|
|||
ENV = 'production'
|
||||
|
||||
# 管理系统/生产环境
|
||||
VUE_APP_BASE_API = 'http://1.15.149.240:30081'
|
||||
VUE_APP_BASE_API = '/api'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 // 端口
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user