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,