add 用户头像上传
This commit is contained in:
@@ -11,16 +11,51 @@ module.exports = {
|
||||
// host: 'localhost', // 本地域名/ip地址
|
||||
// port: '8080', // 端口号
|
||||
proxy: {
|
||||
'/api': {
|
||||
'/github': {
|
||||
//后端接口的baseurl
|
||||
target: 'https://api.github.com/repos',
|
||||
//是否允许跨域
|
||||
changeOrigin: true,
|
||||
// ws: true, //是否代理 websockets
|
||||
// secure: true,
|
||||
// 'secure': true,
|
||||
headers:{
|
||||
Connection:"kepp-alive"
|
||||
},
|
||||
pathRewrite: {
|
||||
//这里的作用是使用去掉api
|
||||
'^/github': ''
|
||||
}
|
||||
},
|
||||
'/upload': {
|
||||
//后端接口的baseurl
|
||||
target: 'http://localhost:8082/helloGithub_war_exploded',
|
||||
//是否允许跨域
|
||||
changeOrigin: true,
|
||||
headers:{
|
||||
Connection:"kepp-alive"
|
||||
},
|
||||
pathRewrite: {
|
||||
//这里的作用是使用去掉api
|
||||
'^/upload': ''
|
||||
}
|
||||
},
|
||||
'/api': {
|
||||
//后端接口的baseurl
|
||||
target: 'http://localhost:8082/helloGithub_war_exploded',
|
||||
//是否允许跨域
|
||||
changeOrigin: true,
|
||||
// ws: true, //是否代理 websockets
|
||||
// secure: true,
|
||||
// 'secure': true,
|
||||
headers:{
|
||||
Connection:"kepp-alive"
|
||||
},
|
||||
pathRewrite: {
|
||||
//这里的作用是使用去掉api
|
||||
'^/api': ''
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user