# vuex-starter-demo **Repository Path**: itknight/vuex-starter-demo ## Basic Information - **Project Name**: vuex-starter-demo - **Description**: 该项目 学习Vuex 的一个跟随案例,我将State Getters Mutations Actions 分别扩展进入了一个普通的项目,git log中可以看到记录。供大家学习。 - **Primary Language**: HTML - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-06-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-cli-demo > A Vue.js project 该项目为 vue-cli init webpack demo 得来的结果,解决当vue-cli 不好用的时候,而提供的 ## 项目包含有: - vue-router - 关闭了单元测试、Eslint等 ## Build Setup ``` bash # 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 ``` For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). computed:{ ...mapGetters({ registors:'registors', total:'total' }) }, /*这个用法,需要有用 es6的新特性 ,所以视频中给出了安装特性的语句 最新版的那啥已经给出来了*/ npm install --save-dev babel-preset-stage-2 并在.babelrc 中的 presets 节点中 加入 ["stage-2"]