39 lines
		
	
	
		
			720 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			39 lines
		
	
	
		
			720 B
		
	
	
	
		
			JavaScript
		
	
	
	
| 
								 | 
							
								const user = {
							 | 
						||
| 
								 | 
							
								  state: {
							 | 
						||
| 
								 | 
							
								    token: null,
							 | 
						||
| 
								 | 
							
								    statePage: "homePage",
							 | 
						||
| 
								 | 
							
								    cityCode: 0,
							 | 
						||
| 
								 | 
							
								    timeFrame: {
							 | 
						||
| 
								 | 
							
								      startTime: "",
							 | 
						||
| 
								 | 
							
								      endTime: ""
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    targetCode: {},
							 | 
						||
| 
								 | 
							
								    airspaceCode: {}
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  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;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  actions: {}
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export default user;
							 |