{"size": 660, "ext": "js", "max_stars_repo_path": "src/store/components/addPermission.js", "max_stars_repo_name": "zkh521/vue5", "max_stars_repo_stars_event_min_datetime": "2018-09-27T11:50:24.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-25T09:26:23.000Z", "max_issues_repo_path": "src/store/components/addPermission.js", "max_issues_repo_name": "zkh521/vue5", "max_issues_repo_issues_event_min_datetime": "2019-07-11T09:20:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T05:13:31.000Z", "max_forks_repo_path": "src/store/components/addPermission.js", "max_forks_repo_name": "wtuliumeng/dspweb", "max_forks_repo_forks_event_min_datetime": "2018-09-14T06:37:29.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-25T09:26:32.000Z"}
{"max_stars_count": 200, "max_issues_count": 11, "max_forks_count": 103, "avg_line_length": 23.5714285714, "max_line_length": 61, "alphanum_fraction": 0.5015151515}
const addPermission={
    state:{
        btnPermissions:[]
    },
    getters:{
        btnPermissions:state=>{
            return state.btnPermissions;
        }
    },
    mutations:{
        add_Permissions(state,param){
            state.btnPermissions=param;
        }
    },
    actions:{
        add_Permissions({commit},param){
            var permissionList=[];
            if(param&&param.length>0){
                for(var i=0;i<param.length;i++){
                    permissionList.push(param[i].permission);
                }
                commit('add_Permissions',permissionList);
            }
        }
    }

}
export default addPermission;