From cba217cc2935785d41c117892b0c469ef7ae4945 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 28 Jul 2022 21:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E4=BA=8E=20/proxy-api=20=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E4=BB=A3=E7=90=86=EF=BC=8C=E7=AE=80=E5=8C=96=20env.lo?= =?UTF-8?q?cal=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.local | 3 ++- yudao-ui-admin/vue.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin/.env.local b/yudao-ui-admin/.env.local index dfaea85b6..58029b662 100644 --- a/yudao-ui-admin/.env.local +++ b/yudao-ui-admin/.env.local @@ -5,7 +5,8 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/本地环境 -VUE_APP_BASE_API = '/dev-api' +# VUE_APP_BASE_API = '/proxy-api' +VUE_APP_BASE_API = 'http://127.0.0.1:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/yudao-ui-admin/vue.config.js b/yudao-ui-admin/vue.config.js index 15d7fb6a9..62d82b481 100644 --- a/yudao-ui-admin/vue.config.js +++ b/yudao-ui-admin/vue.config.js @@ -35,7 +35,7 @@ module.exports = { open: true, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy - [process.env.VUE_APP_BASE_API]: { + ['/proxy-api']: { target: `http://localhost:48080`, // target: `http://api-dashboard.yudao.iocoder.cn`, changeOrigin: true,