williamcruzme / vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://williamcruzme.github.io/vue-gates/
MIT License
264 stars 31 forks source link

You must specify a value in the directive. - is it possible to be able to pass empty v-permission ? #48

Open m7salam opened 2 years ago

m7salam commented 2 years ago

I have a situation that I need to pass empty permission

but I keep getting the console.error You must specify a value in the directive.

so is this a must or this would be just a warning and is there a way to make the warning disappear ?

thanks

hungnm1518 commented 1 year ago

it's just a warning, not an error. You can use v-permission with an empty value.