在使用directive和pinia做按钮权限控制的时候,pinia数据更新如何更好触发directive的updated函数 #8055
Unanswered
l24520
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
现在在使用
v-auth:[AUTH]
和:class="AUTH_CLASS"
时可以触发Directive的updated函数;请问如何不在页面上添加额外引用(不导入usePermissionStore)的情况下使Directive正常触发updated
代码如下
directive.ts
permission.ts
App.vue
Beta Was this translation helpful? Give feedback.
All reactions