const menudata = {
    state: {
        pathdata: JSON.parse(localStorage.getItem("pathdata")) || {},
        pathActive:localStorage.getItem("pathActive") || "",
        pathList:JSON.parse(localStorage.getItem("pathList")) || [],
    },
    mutations:{
        setPathData(state, pathdata){
            localStorage.setItem("pathdata", JSON.stringify(pathdata));
            state.pathdata = pathdata;
        },
        setPathActive(state, pathActive){
            localStorage.setItem("pathActive", pathActive);
            state.pathActive = pathActive;
        },
        setPathList(state, pathList){
            localStorage.setItem("pathList", JSON.stringify(pathList));
            state.pathList = pathList;
        },
    }
  };
export default menudata;