Files
pgserver3.0/pgadmin/ruoyi-ui/README.md
annnj-company 130c1026c4 first commit
2026-04-17 18:29:53 +08:00

44 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 开发
```bash
# 克隆项目
git clone https://gitee.com/y_project/RuoYi-Vue
# 进入项目目录
cd ruoyi-ui
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev
```
浏览器访问 http://localhost:80
## 发布
```bash
# 构建测试环境
npm run build:stage
# 生产环境 【重点关注】
在.env.production 中设置 VUE_APP_BASE_API = 'http://192.168.1.100:8080/api' 客户端才能指向服务端接口地址
# 构建生产环境
npm run build:prod
```
# 增加菜单的方法:
## 1、在若依系统上系统管理-》菜单管理增加响应的菜单.
### 1.1 基础操作设置上级菜单菜单名称显示顺序即为在系统从上到下的顺序0为最小。
### 1.2 注意操作:
#### 路由地址暂无用可填1
#### 组件路径:如果为根菜单(最顶的那个)留空;如为第二、第三层父菜单,不能为空;如果为叶子菜单(点击跳转连接的菜 组件单需要在组件路径在对应的客户端工程src/router/modules/xxx.js里统称路由文件找到对应children:里的import('@/views/ 后面那个字符串,而路由参数为:{'routerName': '路由文件里children里的name除去${pre}以外的那个字符串内容', 'routerUrl': '/[路由文件里children的path项]'}。
# 全局菜单存储地方
## this.$store.state.app.busMenuList