|
@@ -36,11 +36,21 @@ module.exports = {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
// target: `http://192.168.188.99:8080`,
|
|
|
- target: `http://localhost:8080`,
|
|
|
+ // target: `http://localhost:8080`,
|
|
|
+ target: `http://192.168.1.13:8080`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
}
|
|
|
+ },
|
|
|
+ //代理 =>扫描图片的上传地址
|
|
|
+ '/dev-api/identificat/upload': {
|
|
|
+ // target: `http://192.168.188.99:8080`,
|
|
|
+ target: `http://192.168.1.11:19500/upload`,
|
|
|
+ changeOrigin: true,
|
|
|
+ pathRewrite: {
|
|
|
+ '^/dev-api/identificat/upload': ''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
disableHostCheck: true
|