首页信息删除 修改生产环境请求前缀
This commit is contained in:
parent
3cbe53d458
commit
79dde19e2b
|
|
@ -5,4 +5,4 @@ VUE_APP_TITLE = 徐工WMS后台管理系统
|
|||
ENV = 'production'
|
||||
|
||||
# 徐工WMS后台管理系统/生产环境
|
||||
VUE_APP_BASE_API = '/prod-api'
|
||||
VUE_APP_BASE_API = '/'
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|||
// 创建axios实例
|
||||
const service = axios.create({
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
// http://10.24.0.62:9990
|
||||
baseURL: process.env.VUE_APP_BASE_API,
|
||||
// 超时
|
||||
timeout: 10000
|
||||
|
|
|
|||
1020
src/views/index.vue
1020
src/views/index.vue
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user