Browse Source

环境适配修改

old
jianjun 4 years ago
parent
commit
4c2fdabf2c
  1. 2
      .env.development
  2. 2
      .env.production
  3. 4
      vue.config.js

2
.env.development

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 填鸭测试环境 VUE_APP_TITLE = 问卷调查测试环境
# 接口请求地址,会设置到 axios 的 baseURL 参数上 # 接口请求地址,会设置到 axios 的 baseURL 参数上
VUE_APP_API_ROOT = /tduck-api VUE_APP_API_ROOT = /tduck-api
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空

2
.env.production

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = tudck-填鸭 VUE_APP_TITLE = 问卷调查
# 接口请求地址,会设置到 axios 的 baseURL 参数上 # 接口请求地址,会设置到 axios 的 baseURL 参数上
VUE_APP_API_ROOT = /tduck-api VUE_APP_API_ROOT = /tduck-api
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空

4
vue.config.js

@ -17,7 +17,9 @@ module.exports = {
// 开发环境默认开启反向代理,如果不需要请自行注释 // 开发环境默认开启反向代理,如果不需要请自行注释
proxy: { proxy: {
'/tduck-api': { '/tduck-api': {
target: 'http://localhost:8999', target: 'http://localhost:8080/api/',
//target: 'http://localhost:8116',
//target: 'http://epmet-dev.elinkservice.cn:40002',
changeOrigin: true changeOrigin: true
} }
} }

Loading…
Cancel
Save