mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
docs(fes-doc): 更正对v-perssion用法
This commit is contained in:
parent
9d29199408
commit
27abe1bfcb
@ -9,7 +9,7 @@
|
||||
### 按钮权限
|
||||
菜单权限使用菜单的路径当做资源id,而按钮则可以自定义资源id。例如我们定义一个按钮的资源id为'/hr/shelf-action':
|
||||
```html
|
||||
<Wb-button v-permission:="/hr/shelf-action"></Wb-button>
|
||||
<Wb-button v-permission:="'/hr/shelf-action'"></Wb-button>
|
||||
```
|
||||
在如果设置角色或者直接设置可访问资源列表后, 资源列表包含'/hr/shelf-action',则此按钮可见。
|
||||
```javascript
|
||||
|
Loading…
x
Reference in New Issue
Block a user