//发送广播
that.sharedService.emitChange({
actiontype: 'initleftServerfun',
frompage: that.nowleftmenu,
});
//接受广播
this.sharedService.changeEmitted$.subscribe(resp => {
const actiontype = resp.actiontype;
const frompage = resp.frompage;
console.log('接受广播');
});