mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
去除中间域名
This commit is contained in:
@@ -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-pre',
|
||||
baseURL: '/report',
|
||||
timeout: 1000 * 15,
|
||||
// headers: { "Content-Type": "multipart/form-data" },
|
||||
headers: {"Content-Type": "application/json"},
|
||||
|
||||
@@ -165,7 +165,7 @@ export default {
|
||||
} else {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/studyData/export",
|
||||
url: "/report/boeu/studyData/export",
|
||||
params: { ids: `${state.ids}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -301,7 +301,7 @@ export default {
|
||||
const oneExport = (record) => {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/studyData/export",
|
||||
url: "/report/boeu/studyData/export",
|
||||
params: { ids: `${record.record.basicBoeUserId}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -353,7 +353,7 @@ export default {
|
||||
const exportAllBtn = async () => {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/studyData/exportAll",
|
||||
url: "/report/boeu/studyData/exportAll",
|
||||
data: {
|
||||
userNo: state.userNo,
|
||||
name: state.name,
|
||||
|
||||
@@ -346,7 +346,7 @@ export default {
|
||||
if (state.currentTab === 5) {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/case/export",
|
||||
url: "/report/boeu/case/export",
|
||||
params: { ids: `${state.selectedRowKeys}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -358,7 +358,7 @@ export default {
|
||||
} else if (state.currentTab === 4) {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/exam/export",
|
||||
url: "/report/boeu/exam/export",
|
||||
params: { ids: `${state.selectedRowKeys}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -370,7 +370,7 @@ export default {
|
||||
} else if (state.currentTab === 3) {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/course/export",
|
||||
url: "/report/boeu/course/export",
|
||||
params: { ids: `${state.selectedRowKeys}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -382,7 +382,7 @@ export default {
|
||||
} else if (state.currentTab === 2) {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/teaching/export",
|
||||
url: "/report/boeu/teaching/export",
|
||||
params: { ids: `${state.selectedRowKeys}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -394,7 +394,7 @@ export default {
|
||||
} else if (state.currentTab === 1) {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/router/export",
|
||||
url: "/report/boeu/router/export",
|
||||
params: { ids: `${state.selectedRowKeys}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -406,7 +406,7 @@ export default {
|
||||
} else if (state.currentTab === 0) {
|
||||
axios({
|
||||
method: "get",
|
||||
url: "/report-pre/boeu/project/export",
|
||||
url: "/report/boeu/project/export",
|
||||
params: { ids: `${state.selectedRowKeys}` },
|
||||
responseType: "blob",
|
||||
headers: {
|
||||
@@ -423,7 +423,7 @@ export default {
|
||||
if (state.currentTab === 5) {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/case/exportAll",
|
||||
url: "/report/boeu/case/exportAll",
|
||||
data: {
|
||||
name: state.name,
|
||||
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
@@ -439,7 +439,7 @@ export default {
|
||||
} else if (state.currentTab === 4) {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/exam/exportAll",
|
||||
url: "/report/boeu/exam/exportAll",
|
||||
data: {
|
||||
name: state.name,
|
||||
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
@@ -455,7 +455,7 @@ export default {
|
||||
} else if (state.currentTab === 3) {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/course/exportAll",
|
||||
url: "/report/boeu/course/exportAll",
|
||||
data: {
|
||||
name: state.name,
|
||||
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
@@ -471,7 +471,7 @@ export default {
|
||||
} else if (state.currentTab === 2) {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/teaching/exportAll",
|
||||
url: "/report/boeu/teaching/exportAll",
|
||||
data: {
|
||||
name: state.name,
|
||||
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
@@ -487,7 +487,7 @@ export default {
|
||||
} else if (state.currentTab === 1) {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/router/exportAll",
|
||||
url: "/report/boeu/router/exportAll",
|
||||
data: {
|
||||
name: state.name,
|
||||
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
@@ -503,7 +503,7 @@ export default {
|
||||
} else if (state.currentTab === 0) {
|
||||
axios({
|
||||
method: "post",
|
||||
url: "/report-pre/boeu/project/exportAll",
|
||||
url: "/report/boeu/project/exportAll",
|
||||
data: {
|
||||
name: state.name,
|
||||
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||
|
||||
@@ -34,7 +34,7 @@ module.exports = defineConfig({
|
||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
},
|
||||
"/report-pre": {
|
||||
"/report": {
|
||||
target:'https:'+ process.env.VUE_APP_BOE_API_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
pathRewrite: {
|
||||
|
||||
Reference in New Issue
Block a user