终于可以登录了
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
NODE_ENV: '"development"',
|
||||
ENV_CONFIG: '"dev"',
|
||||
BASE_API: '"http://localhost:3000/api"'
|
||||
BASE_API: '"http://localhost:3000"'
|
||||
}
|
||||
|
@@ -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重写的,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user