Merge branch 'compulsory_professional_skills' into master_1202

This commit is contained in:
joshen
2025-03-01 01:05:49 +08:00
9 changed files with 175 additions and 170 deletions

View File

@@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request";
// "application/x-www-form-urlencoded";
axios.defaults.withCredentials = true;
const http = axios.create({
// baseURL: '/growth',
baseURL: process.env.VUE_APP_BASE_API_GROWTH,
baseURL: '/growth',
// baseURL: process.env.VUE_APP_BASE_API_GROWTH,
timeout: 1000 * 15,
// headers: { "Content-Type": "multipart/form-data" },
headers: { "Content-Type": "application/json" },
@@ -54,7 +54,7 @@ http.interceptors.response.use(
const {
data: { code, msg, show },
} = response;
if (code === 0 || code === 200) {
if (code === 0 || code === 200 || response?.data?.status == 200) {
return response;
} else if (code === 1000) {
window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath)

View File

@@ -87,7 +87,7 @@ export const taskCompletionRate = (growthId) => http.get('/professional/manageme
export const getStudyStatisticsList = (data) => http.post('/professional/statics/getStudyStatisticsList', data)
// 专业力列表
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/grow/pageList', obj)
// 是否按顺序学习

View File

@@ -32,4 +32,4 @@ export const boeuCasePlatePageList = (obj) => http.post('/boeu/case/pageList', o
// 专业力列表
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/grow/pageList', obj)