const getters = {
  token: (state) => state.user.token,
  hasUserInfo: (state) => {
    return JSON.stringify(state.user.userInfo) !== '{}' // return true 表示用户信息存在
  },
  tagsViewList: (state) => state.app.tagsViewList,
  userInfo: (state) => state.user.userInfo,
  getterstheme: (state) => state.settings.theme
}

export default getters
