quanyawei
2024-04-03 b74ea56001fba65e67d9b39a5757dab4e4036858
1
2
3
4
5
6
7
8
9
10
import Vue from 'vue';
 
// todo: acl 指令
// document title 指令
Vue.directive('acl', {
  // inserted: (el, binding) => document.title = binding.value,
  update: (el, binding, vnode) => {
    document.title = binding.value;
  },
});