const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,  //建立token的快捷访问   user 是因为index.js中导入的时候名称定义为user
  submitDDTag: state => state.submitDDTag,
  loading:state =>state.loading,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name 
}
export default getters