Web

Vuex & route

https://vuex.vuejs.org/zh/
https://router.vuejs.org/zh/

npm install vuex npm install -g vue-router

when to use vuex?
multiple components depend on or affect one state

vuex flow

xx

更多