From 315b01999db59aee0909d487b1e0772a423151f2 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Fri, 14 Feb 2025 14:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.preview | 1 + .env.production | 1 + .env.testing | 1 + src/api/growth/growthpath.js | 4 +- src/views/growth/index.vue | 75 ++++++++++++++++++++++++------------ 6 files changed, 56 insertions(+), 27 deletions(-) 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 @@