import type { UserState } from './typing';

export const state: UserState = {
  token: '',
  username: '',
  nickname: '',
  avatar: '',
  orgName: '',
  extra: {},
  role: undefined,
  allowRouters: [],
  menuAuth: [],
  routeAuth: {
    nodeList: [],
    viewerNodeList: [],
  },
};

export const initState: UserState = Object.assign({}, state);
