store/index.js
state{
drawerStatus: true,
}
Dashboard.vue
data() {
return {
drawer: true,
};
},
watch: {
"$store.state.drawerStatus"() {
this.drawer = this.$store.state.drawerStatus;
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)