class StatusStore extends Reflux.Store {
page: string
constructor() {
super();
this.listenables = pageAction;
this.page = location.hash.replace('#', '')
}
onPush(page) {
if (this.page === page) {
return false;
}
LeftMeunAction.hide();
this.page = page;
hashHistory.push(page);
}
}
这样写是错误的