ly-front/src/store/modules/chart.js

39 lines
720 B
JavaScript
Raw Normal View History

2025-03-31 15:26:29 +00:00
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;