Commit c98a128a by liuxin

请求路径修改

parent 30072dff
...@@ -2,7 +2,7 @@ import axios from 'axios' ...@@ -2,7 +2,7 @@ import axios from 'axios'
import { MessageBox } from 'element-ui' import { MessageBox } from 'element-ui'
import RequestManager from './RequestManager.js'; import RequestManager from './RequestManager.js';
export const BASE_HOST = "/gjjs/" export const BASE_HOST = "/gjjs/business/"
export const BASE_URI=BASE_HOST+""; export const BASE_URI=BASE_HOST+"";
const instance = axios.create({ const instance = axios.create({
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<script> <script>
import CellHeaderVue from "./common/CellHeader.vue"; import CellHeaderVue from "./common/CellHeader.vue";
import axios from "axios";
export default { export default {
name: "TaskStatistics", name: "TaskStatistics",
...@@ -82,6 +83,11 @@ export default { ...@@ -82,6 +83,11 @@ export default {
], ],
}; };
}, },
created() {
axios.get('/gjjs/report/task/my').then(res => {
console.log(res);
})
}
}; };
</script> </script>
......
...@@ -33,11 +33,18 @@ module.exports = { ...@@ -33,11 +33,18 @@ module.exports = {
errors: true errors: true
}, },
proxy: { proxy: {
'/gjjs/': { '/gjjs/business/': {
target: 'http://127.0.0.1:8081', target: 'http://127.0.0.1:8081',
changeOrigin: true, changeOrigin: true,
pathRewrite: { 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