Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

指令权限inserted应该改为update #3240

Closed
vichily opened this issue Jun 8, 2020 · 0 comments · Fixed by #3251
Closed

指令权限inserted应该改为update #3240

vichily opened this issue Jun 8, 2020 · 0 comments · Fixed by #3251

Comments

@vichily
Copy link

vichily commented Jun 8, 2020

Bug report(问题描述)

指令权限使用inserted的时候 只在页面渲染后调用了一次,v-permission 不会再重复判断,如果按钮上面也写了v-if,后续把值改为真,按钮会显示出来

将inserted 改为update可解决问题,v-permission都会验证权限

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant