[Vue] Storage and Vuex relationship

 

Storage is landing data , if you want the page refreshes, can reload the necessary information, then the information necessarily need to be stored in Storage.

 

Vuex single page is applied global data set , data can be shared between components.

Not only that, combined with the calculation attribute properties, so also did the global data binding . Data does not fall.

 

Two completely different scene, but the front end of the relationship is generally calls Local computed variable -> Vuex attrubute -> WebStorage.

 

Vuex Store docs:https://vuex.vuejs.org/

Vuex in Quasar:quasar.dev/quasar-cli/cli-documentation/vuex-store

Link: https://www.cnblogs.com/farwish/p/11902299.html

Guess you like

Origin www.cnblogs.com/farwish/p/11902299.html