An open API service indexing awesome lists of open source software.

https://github.com/pig-mesh/pig-ui-electron

pig-ui的 electron 移植版(或者叫增强,因为他们并不冲突)
https://github.com/pig-mesh/pig-ui-electron

electron pig-ui vue

Last synced: 9 months ago
JSON representation

pig-ui的 electron 移植版(或者叫增强,因为他们并不冲突)

Awesome Lists containing this project

README

          

## pig-ui electron 版本

此项目是 [pig-ui](https://github.com/pig-mesh/pig-ui) 的`electron`移植版

### 开发环境

安装依赖

```shell script
yarn
```
或者
```shell script
npm i
```

修改`.env.development`文件中的`VUE_APP_API_URL`参数,它表示后端服务的地址。然后可以跑起来了:

```shell script
yarn electron:dev
```

> 启动过程可能有点慢,需要等一会。

### 打包

打包预设了3种环境:

- 集成测试 `prod:sit`
- 验收测试 `prod:uat`
- 生产环境 `prod`

对应的配置文件`.env.development.sit`、.env.development.uat`、.env.development`,你需要修改里面的`VUE_APP_API_URL`参数,填上服务端地址。

根据你的需要进行打包:

```shell script
yarn electron:build:sit
yarn electron:build:uat
yarn electron:build:prod
```

### 命令行参数

`--url ${URL}` 以外部URL启动,比如 `pig-ui.exe --url https://pigx.pig4cloud.com/` 一般用于测试。

### 效果演示

![login](docs/screen/pig-login.png)

![login](docs/screen/pig-home.png)

![login](docs/screen/pig-menus.png)