- 概念
- State
- Getter
- Mutation
- Action
- Module
- 实战
- 如何集成Vuex
- 根据state, getters, mutations, actions创建store
- 在组件中使用mapState
- 在组件中使用mapGetter
- 在组件中使用mapMutation
- 在组件中使用mapAction
- Vue
- Vue-Router
- Vuex
- Bootstrap
- Sass
- Promise
- mongodb
- 确保xcode-select已经安装。可以使用
xcode-select -v
查看;如果没有,使用xcode-select install
安装 - 确保homebrew已经安装。可以使用
brew -v
查看;如果没有,执行/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
;参考homebrew官网
brew tap mongodb/brew
brew update
(可忽略)brew install [email protected]
- 启动:
brew services start [email protected]
- 关闭:
brew services stop [email protected]
brew services list
参考:mongodb官网
yarn install
yarn serve
yarn build
yarn lint