File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import axios from 'axios';
22
33export function request ( config ) {
44 const instance = axios . create ( {
5- baseURL : "/api" ,
5+ // baseURL: "/api",
6+ withCredentials : true ,
7+ // baseURL: "http://localhost:1003/",
8+ baseURL : "http://106.15.201.34:1003/" ,
69 timeout : 5000
710 } )
811
Original file line number Diff line number Diff line change @@ -11,16 +11,18 @@ module.exports= {
1111 'common' : '@/common'
1212 }
1313 }
14- } ,
15- devServer :{
16- proxy :{
17- '/api' :{
18- target :'http://106.15.201.34:8080/' ,
19- changeOrigin : true ,
20- pathRewrite : {
21- '^/api' : ''
22- }
23- }
24- }
25- }
14+ }
15+ // ,
16+ // devServer:{
17+ // proxy:{
18+ // '/api':{
19+ // // target:'http://106.15.201.34:8080/',
20+ // target:'http://localhost:8080/',
21+ // changeOrigin: true,
22+ // pathRewrite: {
23+ // '^/api': ''
24+ // }
25+ // }
26+ // }
27+ // }
2628}
You can’t perform that action at this time.
0 commit comments