store/index.js
state{
drawerStatus: true,
}
Dashboard.vue
data() {
return {
drawer: true,
};
},
watch: {
"$store.state.drawerStatus"() {
this.drawer = this.$store.state.drawerStatus;
}
}
store/index.js
state{
drawerStatus: true,
}
Dashboard.vue
data() {
return {
drawer: true,
};
},
watch: {
"$store.state.drawerStatus"() {
this.drawer = this.$store.state.drawerStatus;
}
}