docs: 批量博文

This commit is contained in:
杭城小刘
2020-02-25 17:46:51 +08:00
parent 8e5d2c9e7f
commit 6e99436a9e
373 changed files with 18071 additions and 1116 deletions

View File

@@ -0,0 +1,61 @@
# 调试工具安装
---
## 安装方式一
Vue-devtools 可以从 Chrome 商店直接下载安装,前提需要翻墙。
## 安装方式二
* 第一步:找到 Vue-devtools 的 github 地址,并将其 clone 到本地。
```
git clone https://github.com/vuejs/vue-devtools.git
```
* 第二步:安装项目所依赖的 npm 包
```
npm install
```
遇到的问题:
![遇到的问题](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/Chrome-Vue-tools1.png)
改用命令
```
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
```
![改用命令](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/Chrome-Vue-tools3.png)
继续 npm install
* 第三步:编译项目文件
```
npm run build
```
![编译项目文件](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/Chrome-Vue-tools4.png)
* 第四步:添加至 Chrome 浏览器的拓展
```
浏览器地址栏输入chrome://extensions/
点击“加载已解压的拓展程序”选择本地 clone 下来的文件夹中的 shells -> chrome 文件夹vue-devtools-master/shells/chrome
```
![Chrome 添加拓展](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/Chrome-Vue-tools5.png)
* 第五步:重启浏览器
* 第六步:在浏览器中的调试 Vue 代码
![Chrome 调试 Vue](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/assets/Chrome-Vue-tools6.png)