新增 vue2、uniapp 的演示环境启动方式,方便前端同学

This commit is contained in:
YunaiV 2023-03-05 12:33:49 +08:00
parent 6115a1ee34
commit a6896203ca
4 changed files with 26 additions and 1 deletions

View File

@ -1,6 +1,6 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
// baseUrl: 'http://localhost:8080', // baseUrl: 'http://api-dashboard.yudao.iocoder.cn',
baseUrl: 'http://localhost:48080', baseUrl: 'http://localhost:48080',
baseApi: '/admin-api', baseApi: '/admin-api',
// 应用信息 // 应用信息

23
yudao-ui-admin/.env.front Normal file
View File

@ -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

View File

@ -7,6 +7,7 @@
"scripts": { "scripts": {
"local": "vue-cli-service serve --mode local", "local": "vue-cli-service serve --mode local",
"dev": "vue-cli-service serve --mode dev", "dev": "vue-cli-service serve --mode dev",
"front": "vue-cli-service serve --mode front",
"build:prod": "vue-cli-service build --mode prod", "build:prod": "vue-cli-service build --mode prod",
"build:stage": "vue-cli-service build --mode stage", "build:stage": "vue-cli-service build --mode stage",
"build:dev": "vue-cli-service build --mode dev", "build:dev": "vue-cli-service build --mode dev",

View File

@ -1,6 +1,7 @@
module.exports = { module.exports = {
//后端接口地址 //后端接口地址
baseUrl: 'http://127.0.0.1:48080/app-api', baseUrl: 'http://127.0.0.1:48080/app-api',
// baseUrl: 'http://api-dashboard.yudao.iocoder.cn/app-api',
// 超时 // 超时
timeout: 30000, timeout: 30000,
// 禁用 Cookie 等信息 // 禁用 Cookie 等信息