From a6896203ca308678a7b197c163bf5181c1243913 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 5 Mar 2023 12:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20vue2=E3=80=81uniapp=20?= =?UTF-8?q?=E7=9A=84=E6=BC=94=E7=A4=BA=E7=8E=AF=E5=A2=83=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=96=B9=E4=BE=BF=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=90=8C=E5=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-uniapp/config.js | 2 +- yudao-ui-admin/.env.front | 23 +++++++++++++++++++++++ yudao-ui-admin/package.json | 1 + yudao-ui-app/common/config.js | 1 + 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 yudao-ui-admin/.env.front diff --git a/yudao-ui-admin-uniapp/config.js b/yudao-ui-admin-uniapp/config.js index d8d38e8d23..3bc3640146 100644 --- a/yudao-ui-admin-uniapp/config.js +++ b/yudao-ui-admin-uniapp/config.js @@ -1,6 +1,6 @@ // 应用全局配置 module.exports = { - // baseUrl: 'http://localhost:8080', + // baseUrl: 'http://api-dashboard.yudao.iocoder.cn', baseUrl: 'http://localhost:48080', baseApi: '/admin-api', // 应用信息 diff --git a/yudao-ui-admin/.env.front b/yudao-ui-admin/.env.front new file mode 100644 index 0000000000..9e2d4d2b45 --- /dev/null +++ b/yudao-ui-admin/.env.front @@ -0,0 +1,23 @@ +# 开发环境配置 +ENV = 'development' + +# 页面标题 +VUE_APP_TITLE = 芋道管理系统 + +# 芋道管理系统/本地环境 +VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true + +# 多租户的开关 +VUE_APP_TENANT_ENABLE = true + +# 验证码的开关 +VUE_APP_CAPTCHA_ENABLE = true + +# 文档的开关 +VUE_APP_DOC_ENABLE = true + +# 百度统计 +VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab diff --git a/yudao-ui-admin/package.json b/yudao-ui-admin/package.json index 751a1ee4d0..a26656a84f 100644 --- a/yudao-ui-admin/package.json +++ b/yudao-ui-admin/package.json @@ -7,6 +7,7 @@ "scripts": { "local": "vue-cli-service serve --mode local", "dev": "vue-cli-service serve --mode dev", + "front": "vue-cli-service serve --mode front", "build:prod": "vue-cli-service build --mode prod", "build:stage": "vue-cli-service build --mode stage", "build:dev": "vue-cli-service build --mode dev", diff --git a/yudao-ui-app/common/config.js b/yudao-ui-app/common/config.js index fed69625b6..66cf4a94e8 100644 --- a/yudao-ui-app/common/config.js +++ b/yudao-ui-app/common/config.js @@ -1,6 +1,7 @@ module.exports = { //后端接口地址 baseUrl: 'http://127.0.0.1:48080/app-api', + // baseUrl: 'http://api-dashboard.yudao.iocoder.cn/app-api', // 超时 timeout: 30000, // 禁用 Cookie 等信息