终于可以登录了

This commit is contained in:
chenwenlong
2018-11-20 08:34:35 +08:00
parent e751ac581b
commit 92a1ca8cd6
3 changed files with 10 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
module.exports = {
NODE_ENV: '"development"',
ENV_CONFIG: '"dev"',
BASE_API: '"http://localhost:3000/api"'
BASE_API: '"http://localhost:3000"'
}

View File

@@ -10,11 +10,12 @@ module.exports = {
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api':{
'/public':{
target: 'http://chenwenlong.site:8088', // 接口域名
// target: 'http://localhost', // 接口域名
changeOrigin: true, //是否跨域
pathRewrite: {
'^/api': '' //需要rewrite重写的,
'^/public': '' //需要rewrite重写的,
}
}
},