diff --git a/.env.development b/.env.development index 104cf70a..bd03f4bf 100644 --- a/.env.development +++ b/.env.development @@ -41,6 +41,7 @@ VUE_APP_PUBLIC_PATH='/pc' VUE_APP_MANAGER_PATH='/manage' VUE_APP_STUDENT_PATH='/fe-student' VUE_APP_MANAGER_API_PATH='/manageApi' +VUE_APP_GROWTH_API_PATH='' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.preview b/.env.preview index bedbe676..efbfebd1 100644 --- a/.env.preview +++ b/.env.preview @@ -37,6 +37,7 @@ VUE_APP_PUBLIC_PATH='/pc-release' VUE_APP_MANAGER_PATH='/manage-release' VUE_APP_STUDENT_PATH='/fe-student-release' VUE_APP_MANAGER_API_PATH='/manageApi-release' +VUE_APP_GROWTH_API_PATH='/growth' # 登录地址 VUE_APP_LOGIN_URL='https://u.boe.com/web-release/' diff --git a/.env.production b/.env.production index 195e48a9..c63a65a8 100644 --- a/.env.production +++ b/.env.production @@ -37,6 +37,7 @@ VUE_APP_PUBLIC_PATH='/pc' VUE_APP_MANAGER_PATH='/manage' VUE_APP_STUDENT_PATH='/fe-student' VUE_APP_MANAGER_API_PATH='/manageApi' +VUE_APP_GROWTH_API_PATH='/growth' # 登录地址 VUE_APP_LOGIN_URL='https://u.boe.com/web/' diff --git a/.env.testing b/.env.testing index d6c3ac9f..b0e73f37 100644 --- a/.env.testing +++ b/.env.testing @@ -36,6 +36,7 @@ VUE_APP_PUBLIC_PATH='/pc' VUE_APP_MANAGER_PATH='/manage' VUE_APP_STUDENT_PATH='/fe-student' VUE_APP_MANAGER_API_PATH='/manageApi' +VUE_APP_GROWTH_API_PATH='/growth' # 登录地址 VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' diff --git a/src/api/growth/growthpath.js b/src/api/growth/growthpath.js index 793e7e15..c6bb7390 100644 --- a/src/api/growth/growthpath.js +++ b/src/api/growth/growthpath.js @@ -1,6 +1,6 @@ // import ajax from '@/utils/xajax.js' import ajax from '../ajax'; -// const baseURL = ''; -const baseURL = '/growth'; +const baseURL = process.env.VUE_APP_GROWTH_API_PATH; +// const baseURL = '/growth'; // 查询专业力必修列表 export const listData = (obj) => ajax.get(baseURL, '/professional/student/studentGrowthList', { params: obj }) diff --git a/src/views/growth/index.vue b/src/views/growth/index.vue index 8c90c826..ffe3c54c 100644 --- a/src/views/growth/index.vue +++ b/src/views/growth/index.vue @@ -41,7 +41,44 @@