Home > sic-util > author_strict
author_strict() function
严格匹配当前按钮权限
Signature:
typescript
author_strict: (list: ResourceItem[], id: number) => boolean
Parameters
Parameter | Type | Description |
---|---|---|
list | ResourceItem[] | 当前的页面权限 |
id | number | 当前的按钮权限 |
boolean
{boolean} 是否存在该权限 true/false