新增 vue2、uniapp 的演示环境启动方式,方便前端同学
This commit is contained in:
parent
6115a1ee34
commit
a6896203ca
@ -1,6 +1,6 @@
|
||||
// 应用全局配置
|
||||
module.exports = {
|
||||
// baseUrl: 'http://localhost:8080',
|
||||
// baseUrl: 'http://api-dashboard.yudao.iocoder.cn',
|
||||
baseUrl: 'http://localhost:48080',
|
||||
baseApi: '/admin-api',
|
||||
// 应用信息
|
||||
|
23
yudao-ui-admin/.env.front
Normal file
23
yudao-ui-admin/.env.front
Normal 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
|
@ -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",
|
||||
|
@ -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 等信息
|
||||
|
Loading…
Reference in New Issue
Block a user