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