补全使用文档

This commit is contained in:
Yu Sun
2022-07-16 14:16:16 +08:00
parent 19b3b3bd3e
commit 9b00555e37

View File

@@ -5,6 +5,7 @@
- [class `EDataCapture`](#class-edatacapture)
- [0. HTTP POST: `set_node_data`](#0-http-post-set_node_data)
- [使用指北](#使用指北)
- [环境依赖](#环境依赖)
- [后端](#后端)
- [前端](#前端)
- [开发环境](#开发环境)
@@ -100,8 +101,28 @@
下文简要介绍如何将代码合并入MES中。
### 环境依赖
### 后端
添加pg扩展Ubuntu
```bash
sudo apt install php-pgsql
```
添加pg扩展CentOS 7
```bash
sudo yum install php-pgsql
```
添加pg扩展CentOS8
```bash
sudo dnf install php-pgsql
```
目录结构:
```pre
@@ -133,6 +154,19 @@
### 前端
添加依赖使用npm
```bash
npm i element-ui @d2-projects/d2-crud -S
npm install -S vue-cheetah-grid
```
添加依赖使用yarn
```bash
yarn add element-ui @d2-projects/d2-crud
yarn add vue-cheetah-grid
```
需要在`main.js`中增加(全局引入组件):
```js