有关vuex的最佳实践,包括基本vuex用法、异步action,以及更高级的辅助函数mapState、mapGetters、mapActions,modules模块分割,命名空间,全局和局部的state数据修改进行函数封装,你想到的没想到的,我都尝试过。
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report