From c4e8e8fa60d6aa919806fdec849470f25deef93e Mon Sep 17 00:00:00 2001 From: huangzhe <3451701311@qq.com> Date: Tue, 2 Sep 2025 17:00:12 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=E6=8A=8A=20baseurl=20?= =?UTF-8?q?=E5=88=87=E5=9B=9E=20/report"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 12a87153e47fb0c29e36c5ed749d2bdbb2e50e71. --- src/api/configz.js | 2 +- src/api/indexProject.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/configz.js b/src/api/configz.js index 89cdcd8d..d27809e8 100644 --- a/src/api/configz.js +++ b/src/api/configz.js @@ -12,7 +12,7 @@ import Cookies from 'vue-cookies' // export const BATCH_IMPORT_SCORE = process.env.VUE_APP_BASE_API + '/admin/offcourse/batchImportScore' axios.defaults.withCredentials = true; const http = axios.create({ - baseURL: '/report', + baseURL: '/', timeout: 1000 * 15, // headers: { "Content-Type": "multipart/form-data" }, headers: {"Content-Type": "application/json"}, diff --git a/src/api/indexProject.js b/src/api/indexProject.js index 571eacfb..4fb8ba55 100644 --- a/src/api/indexProject.js +++ b/src/api/indexProject.js @@ -5,15 +5,15 @@ export const userGetUserOrg = (obj) => https.get('/organization/all/tree', obj) // 请求所属组织接口 export const userInfo = (obj) => https.post('/user/info', obj) // 项目列表 -export const boeuProjectPageList = (obj) => http.post('/boeu/project/pageList', obj) +export const boeuProjectPageList = (obj) => http.post('/report/boeu/project/pageList', obj) // 文章列表 -export const boeuArticlePageList = (obj) => http.post('/boeu/article/pageList', obj ) +export const boeuArticlePageList = (obj) => http.post('/report/boeu/article/pageList', obj ) // 课程分页列表 -export const boeuCourseListPageV2 = (obj) => http.post('/boeu/course/List/page/v2', obj ) +export const boeuCourseListPageV2 = (obj) => http.post('/report/boeu/course/List/page/v2', obj ) // 考试列表分页 export const boeuExamPageListV2 = (obj) => http.post('/boeu/exam/pageList/v2', obj ) // 问答分页列表 -export const boeuQuestionPageList= (obj) => http.post('/boeu/question/pageList', obj ) +export const boeuQuestionPageList= (obj) => http.post('/report/boeu/question/pageList', obj ) //柱状体左侧获取数据接口 export const dataStatisticsSelectV1= (obj) => http.post('/data/statistics/select/v1', obj ) //柱状体右侧获取数据接口