[TOC]
## vuex的实现流程图

## 1.NPM安装
```
npm install vuex --save
```
## 2.src目录下新建store.js的文件
```
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
city:'天门'
},
mutations: {
},
actions: {
}
})
```
## 3.在组件中使用vuex的数据
```
<div class="button">{{this.$store.state.city}}</div>
```
## vuex调试查看位置
