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