Vuex ready

(1 Introduction

The heart of every Vuex application is to store (warehouse). "Store" is basically a container that contains most of the state (state) of your application. Vuex and simple global objects have a different following two points:

  1. Vuex state is responsive to storage. When the component reads Vue state from the store, the store if the state changes, the respective components will be updated accordingly obtained efficiently.

  2. You can not directly change the state of the store. The only way to change the status of the store is explicitly commit (commit) mutation. So that we can easily track changes in each state, so that we can achieve some tools to help us better understand our application.

(2) store warehouse

 

 

 

 

 

 

 

.

Guess you like

Origin www.cnblogs.com/jianxian/p/11319229.html