12 lines
		
	
	
		
			579 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			579 B
		
	
	
	
		
			JavaScript
		
	
	
	
const getters = {
 | 
						|
  token: (state) => state.chart.token, //示例
 | 
						|
  statePage: (state) => state.chart.statePage, //二级菜单切换状态
 | 
						|
  cityCode: (state) => state.chart.cityCode, //城市代码
 | 
						|
  timeFrame: (state) => state.chart.timeFrame, //时间范围
 | 
						|
  map: (state) => state.map.map,
 | 
						|
  adsbisFlag: (state) => state.map.adsbisFlag, //是否显示adsb
 | 
						|
  targetCode: (state) => state.chart.targetCode, //防护目标单一点击更改两侧数据
 | 
						|
  airspaceCode: (state) => state.chart.airspaceCode //低空空域单一点击更改两侧数据
 | 
						|
};
 | 
						|
export default getters;
 |