diff --git a/config/proxy.ts b/config/proxy.ts index 04f35fc..8a1adec 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -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' }, }, }, }; diff --git a/dist/index.html b/dist/index.html index 7fff8e6..b712105 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,6 +8,6 @@
- +