From 5fafa6f9951b29db5bbe896c0a865d2b920358ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Wed, 20 Sep 2023 17:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 8 ++++++++ src/{api => }/login.js | 0 2 files changed, 8 insertions(+) rename src/{api => }/login.js (100%) diff --git a/config/index.js b/config/index.js index e13a9495..c8a5e3ff 100644 --- a/config/index.js +++ b/config/index.js @@ -10,6 +10,14 @@ module.exports = { assetsSubDirectory: '', assetsPublicPath: '/', proxyTable: { + + '/api/m1/oauth2client': { + target: 'http://localhost:7002', + changeOrigin: true, + pathRewrite: { + '^/api/m1/oauth2client': '' + } + }, /** '/api/m1/xm': { target: 'http://localhost:7067', diff --git a/src/api/login.js b/src/login.js similarity index 100% rename from src/api/login.js rename to src/login.js