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 移植版(或者叫增强,因为他们并不冲突)
- Host: GitHub
- URL: https://github.com/pig-mesh/pig-ui-electron
- Owner: pig-mesh
- License: apache-2.0
- Created: 2020-10-11T12:48:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-21T13:23:26.000Z (about 5 years ago)
- Last Synced: 2025-04-11T04:01:51.975Z (about 1 year ago)
- Topics: electron, pig-ui, vue
- Language: Vue
- Homepage:
- Size: 1.51 MB
- Stars: 12
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/` 一般用于测试。
### 效果演示


