Vue privilege control

vue project uses permission control. Find Vue2.0 user rights control solution on the Internet

however, when I use views to control custom instructions

Vue.directive("has", {
  bind: function(el, binding) {
    if (!Vue.prototype.$_has(binding.value)) {
      el.parentNode.removeChild(el);
    }
  }
});

dom operation will report that parentNode is not available, and it can be executed by putting it into inserted. But the example he gave can run

.

clipboard.png
this is a source code example

Oct.12,2021

clipboard.png

the code in the source code of his project also seems to be inserted

.

Vue-Access-Control/issues/11


bind only requires dom generation, not dom in the html document.


you can try this VueAccessControl

.
Menu