You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
如图,就感觉这句里的 accessMode.value === 'frontend' 很多余啊?
如果是后端模式 v-access:role 就也走的是hasAccessByCodes
而使用 api 形式 <Button v-if="hasAccessByRoles(['super'])" 就没这个判断
那么为什么使用 v-access:role 要判断前后端呢,是出于什么考虑和初衷呢?
难道设置后端模式,就不能根据 userStore.userRoles 当前登录用户的角色来判断按钮是否显示了吗?
Beta Was this translation helpful? Give feedback.
All reactions