1. admin-web 接入新的登陆接入
This commit is contained in:
@@ -19,7 +19,7 @@ function basePathBuilder(proxys, basePath) {
|
||||
}
|
||||
|
||||
export default function(NODE_ENV, basePath) {
|
||||
NODE_ENV = 'prod';
|
||||
// NODE_ENV = 'prod';
|
||||
let proxys = NODE_ENV === 'development' || NODE_ENV === 'undefined' ? proxyDev : proxyProd;
|
||||
if (basePath) {
|
||||
proxys = basePathBuilder(proxys, basePath);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 开发环境,的代理配置
|
||||
|
||||
module.exports = {
|
||||
'/admin-api/': {
|
||||
'/system-api/': {
|
||||
target: 'http://127.0.0.1:18083/',
|
||||
// target: 'http://180.167.213.26:18083/',
|
||||
changeOrigin: true,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// production 配置文件
|
||||
|
||||
module.exports = {
|
||||
'/admin-api/': {
|
||||
'/system-api/': {
|
||||
target: 'http://api.shop.iocoder.cn',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {},
|
||||
|
||||
Reference in New Issue
Block a user