And Vuex had to say three days and two nights
1, What is Vuex
Suitable scene
:
Component data transfer with complex relationships
Vuex
It is equivalent to a container for storing shared variables
vuex is composed of five core parts
1.state: used to store data
// Create a User component
const User = {
template: `<div>{{ User }}</div>`,
computed: { / ...
Posted by josh on Wed, 01 Sep 2021 22:23:43 +0200