更新资源包
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
export default {
|
||||
// 如果需要自定义本地开发服务器 请取消注释按需调整
|
||||
// dev: {
|
||||
// // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
// '/api/': {
|
||||
// // localhost:8000/admin/** -> https://preview.pro.ant.design/admin/**
|
||||
// '/admin/': {
|
||||
// // 要代理的地址
|
||||
// target: 'https://preview.pro.ant.design',
|
||||
// // 配置了这个可以从 http 代理到 https
|
||||
@@ -27,41 +27,41 @@ export default {
|
||||
* @doc https://github.com/chimurai/http-proxy-middleware
|
||||
*/
|
||||
test: {
|
||||
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
'/api/': {
|
||||
// localhost:8000/admin/** -> https://preview.pro.ant.design/admin/**
|
||||
'/admin/': {
|
||||
// target: 'https://proapi.azurewebsites.net',
|
||||
// target: 'http://192.168.1.32:6001',
|
||||
target: 'https://iadminapi.zhongshuai2023.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
dev: {
|
||||
'/api/': {
|
||||
'/admin/': {
|
||||
target: 'http://192.168.1.32:1002',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
pre: {
|
||||
'/api/': {
|
||||
'/admin/': {
|
||||
target: 'https://iadminapi.zhongshuai2023.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
prod: {
|
||||
'/api/': {
|
||||
'/admin/': {
|
||||
target: 'https://iadminapi.zhongshuai2023.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
pro: {
|
||||
'/api/': {
|
||||
'/admin/': {
|
||||
target: 'https://iadminapi.zhongshuai2023.com',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '/api' },
|
||||
pathRewrite: { '^/admin': '/admin' },
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user