Commit c98a128a by liuxin

请求路径修改

parent 30072dff
......@@ -2,7 +2,7 @@ import axios from 'axios'
import { MessageBox } from 'element-ui'
import RequestManager from './RequestManager.js';
export const BASE_HOST = "/gjjs/"
export const BASE_HOST = "/gjjs/business/"
export const BASE_URI=BASE_HOST+"";
const instance = axios.create({
......
......@@ -48,6 +48,7 @@
<script>
import CellHeaderVue from "./common/CellHeader.vue";
import axios from "axios";
export default {
name: "TaskStatistics",
......@@ -82,6 +83,11 @@ export default {
],
};
},
created() {
axios.get('/gjjs/report/task/my').then(res => {
console.log(res);
})
}
};
</script>
......
......@@ -33,11 +33,18 @@ module.exports = {
errors: true
},
proxy: {
'/gjjs/': {
'/gjjs/business/': {
target: 'http://127.0.0.1:8081',
changeOrigin: true,
pathRewrite: {
'^/gjjs': '/gjjs'
'^/gjjs/business': '/gjjs/business'
}
},
'/gjjs/report/': {
target: 'http://127.0.0.1:8082',
changeOrigin: true,
pathRewrite: {
'^/gjjs/report': '/gjjs/report'
}
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment