import { makeAutoObservable, computed } from 'mobx'
class Store {
menu = false
constructor() {
makeAutoObservable(this);
}
setMenu = () => {
this.menu = true
console.log('s', this.menu)
}
@computed get total() {
return this.menu
}
get menuState () {
return this.menu
}
}
export default new Store()