actions.ts 589 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/**
 * 提交统一资源数据
 * 
 * @param param0 
 * @param data 
 */
 export const commitAuthData = ({ commit, state }: { commit: any, state: any }, { unires, appmenu, enablepermissionvalid, srfdynainstid }: { unires: Array<any>, appmenu: Array<any>, enablepermissionvalid: boolean, srfdynainstid: string }) => {

  commit('setResourceData', unires && unires.length > 0 ? unires : []);

  commit('setMenuData', appmenu && appmenu.length > 0 ? appmenu : []);

  commit('setEnablePermissionValid', enablepermissionvalid === true);

  commit('setStandDynainstid', srfdynainstid || '');
}