48 lines
		
	
	
		
			971 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			971 B
		
	
	
	
		
			JavaScript
		
	
	
	
const user = {
 | 
						|
  state: {
 | 
						|
    token: null,
 | 
						|
    statePage: "homePage",
 | 
						|
    cityCode: 0,
 | 
						|
    timeFrame: {
 | 
						|
      startTime: "",
 | 
						|
      endTime: ""
 | 
						|
    },
 | 
						|
    targetCode: {},
 | 
						|
    airspaceCode: {},
 | 
						|
 | 
						|
    positionPoint: false, // 位置上报
 | 
						|
    isZoomedIn: true // 音频是否打开
 | 
						|
  },
 | 
						|
 | 
						|
  mutations: {
 | 
						|
    SET_POINT: (state, value) => {
 | 
						|
      state.homePoint = value;
 | 
						|
    },
 | 
						|
    SET_STATEPAGE: (state, value) => {
 | 
						|
      state.statePage = value;
 | 
						|
    },
 | 
						|
    SET_CITYCODE: (state, value) => {
 | 
						|
      state.cityCode = value;
 | 
						|
    },
 | 
						|
    SET_TIMEFRAME: (state, value) => {
 | 
						|
      state.timeFrame = value;
 | 
						|
    },
 | 
						|
    SET_TARGETCODE: (state, value) => {
 | 
						|
      state.targetCode = value;
 | 
						|
    },
 | 
						|
    SET_AIRSPACECODE: (state, value) => {
 | 
						|
      state.airspaceCode = value;
 | 
						|
    },
 | 
						|
    SET_POSITIONPOINT: (state, value) => {
 | 
						|
      state.positionPoint = value;
 | 
						|
    },
 | 
						|
    SET_ISZOOMEDIN: (state, value) => {
 | 
						|
      state.isZoomedIn = value;
 | 
						|
    }
 | 
						|
  },
 | 
						|
 | 
						|
  actions: {}
 | 
						|
};
 | 
						|
 | 
						|
export default user;
 |