permission.js 225 B

1234567
  1. //先获取本地权限数据 permissions
  2. let btnPermission = (data) => {
  3. let permissions = uni.getStorageSync('ButtonPermissions');
  4. let isHave = permissions.includes(data);
  5. return isHave;
  6. }
  7. export default btnPermission;