RuleGo-Editor RuleGo-Editor
🏠首页
🧭使用
  • 简介
  • 安装
  • 配置
  • 组件
  • 架构设计
  • 国际化
  • 事件系统
  • 调试功能
  • AI功能
  • 自定义节点
  • 分组节点
  • RuleGo-Editor (opens new window)
  • RuleGo-Server (opens new window)
  • 后端API文档 (opens new window)
RuleGo (opens new window)
  • English
  • 简体中文
🏠首页
🧭使用
  • 简介
  • 安装
  • 配置
  • 组件
  • 架构设计
  • 国际化
  • 事件系统
  • 调试功能
  • AI功能
  • 自定义节点
  • 分组节点
  • RuleGo-Editor (opens new window)
  • RuleGo-Server (opens new window)
  • 后端API文档 (opens new window)
RuleGo (opens new window)
  • English
  • 简体中文
  • 简介
  • 安装
    • 环境支持
    • 编译
      • 部署到 RuleGo-Server
      • 集成注意事项
  • 配置
  • 节点组件
  • 架构设计
  • 国际化
  • 事件系统
  • 调试功能
  • AI 功能
  • 自定义节点开发
  • 分组节点
目录

安装

# 环境支持

由于 Vue 3 不再支持 IE11,RuleGo-Editor 也不再支持 IE 浏览器。

Edge ≥ 79 Firefox ≥ 78 Chrome ≥ 64 Safari ≥ 12

# 编译

RuleGo-Editor 使用Vite (opens new window) 进行打包。你可以选择一个你喜欢的包管理器,以下例子使用npm(先安装nodejs (opens new window))

安装:

进入到项目目录,执行以下命令:

npm install
1

dev:

npm run dev
1

build:

npm run build
1

# 部署到 RuleGo-Server

构建产物默认输出到 dist/ 目录。将 dist/ 目录下的所有文件复制到 RuleGo-Server 的 editor/ 目录即可:

your-app/
├── server          # 服务端二进制
├── config.conf     # 配置文件
└── editor/         # 构建产物(原 dist/ 内容)
    ├── index.html
    ├── config/
    └── assets/
1
2
3
4
5
6
7

确保 config.conf 中 resource_mapping 配置正确:

resource_mapping = /editor/*filepath=./editor,/images/*filepath=./editor/images
1

启动 server 后访问 http://localhost:9090/ 即可使用编辑器。

# 集成注意事项

如果编辑器需要集成到 RuleGo-Server,确保 vite.config.js (opens new window) 中 base 配置为 /editor/:

export default defineConfig({
  base: '/editor/',
  // ...
})
1
2
3
4

如果是独立部署或嵌入到其他系统,根据实际路径修改 base 配置。

上次更新: 2026/05/29, 04:08:46
简介
配置

← 简介 配置→

Theme by Vdoing | Copyright © 2023-2026 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式