123456789101112131415161718192021222324252627 |
- /*
- 因为app没有像浏览器那样刷新清缓存的功能,所以不用取缓存判断。但是一定要记得退出清掉全部缓存
- */
- // 登陆状态
- export const loginStatus=(state)=>{
- return state.token ? true : false
- }
- // 模块查看权限
- export const authList=(state)=>{
- let res=state.loginResponse
- return res.auth ? res.auth : []
- }
- // 用户登陆账号
- export const userid=(state)=>{
- let res=state.loginResponse
- return res.userid ? res.userid : null
- }
- // 设备品牌
- export const deviceBrand=(state)=>{
- return state.systemInfo.brand
- }
- // 禁止提交
- export const disabledSubmit=(state)=>{
- return state.submitStatus ? true :false
- }
|