# Getters 说明

getters.js 自定义vuex全局getter工具
Author andy.ten@tom.com & xukaixing@hotmail.com

# API

# Getters State

方法名 说明 参数 示例
token 获取token this.$store.getters.token
loginAccount 获取登录账号息 this.$store.getters.loginAccount
userInfo 获取登录用户信息 this.$store.getters.userInfo 返回json格式
navMenus 获取登录用户菜单信息 this.$store.getters.navMenus 返回json格式
language 获取语言 this.$store.getters.language
dict 获取字典数据 this.$store.getters.dict
theme 获取主题信息 this.$store.getters.theme
visitedViews 获取访问的菜单信息 this.$store.getters.visitedViews 返回数组
cachedViews 获取菜单的缓存信息 this.$store.getters.cachedViews 返回数组

# 版本

  • v1.0.5