umbrella22

添加中文doc

...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
5 #### Build Setup 5 #### Build Setup
6 6
7 ``` bash 7 ``` bash
8 +# For Chinese Developers
9 +# install nrm
10 +npm i -g nrm
11 +# Switch to Taobao Source with NRM
12 +nrm ls
13 +nrm use taobao
8 # install dependencies 14 # install dependencies
9 npm install 15 npm install
10 16
......
1 +# Electron-Vue-template
2 +
3 +> 这是一个基于electron的vue最基本的模板,其中前端技术栈则用到vue全家桶,axios作为http请求,而本地数据库则是nedb。
4 +
5 +#### 如何安装
6 +
7 +``` bash
8 +# 首先全局安装nrm
9 +npm i -g nrm
10 +# 然后使用nrm切换为淘宝源,或者你已经切换了npm的源也是可以的,强烈不建议使用cnpm如果你不想看到什么奇奇怪怪的爆红问题
11 +nrm ls
12 +nrm use taobao
13 +# 安装依赖
14 +npm install
15 +
16 +# 启动之后,会在9080端口监听,如要修改则请到.electron-vue文件夹下的dev-runner.js中的第76行位置更改即可,记得更改后重新运行run dev
17 +npm run dev
18 +
19 +# build命令在不同系统环境中,需要的的不一样,Windows中需要vs协助。
20 +npm run build
21 +
22 +# run unit & end-to-end tests
23 +npm test
24 +
25 +
26 +```
27 +
28 +---
29 +
30 +This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[8fae476](https://github.com/SimulatedGREG/electron-vue/tree/8fae4763e9d225d3691b627e83b9e09b56f6c935) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
21 <el-button type="primary" round @click="open()">控制台打印</el-button> 21 <el-button type="primary" round @click="open()">控制台打印</el-button>
22 <el-button type="primary" round @click="setdata">写入数据</el-button> 22 <el-button type="primary" round @click="setdata">写入数据</el-button>
23 <el-button type="primary" round @click="getdata">读取数据</el-button> 23 <el-button type="primary" round @click="getdata">读取数据</el-button>
24 - <el-button type="primary" round @click="deledata">清除数据</el-button> 24 + <el-button type="primary" round @click="deledata">清除所有数据</el-button>
25 </div> 25 </div>
26 </div> 26 </div>
27 </main> 27 </main>
......