quanyawei
2024-04-03 5865b929ac3863a9bf3a0b5e6311b143a4a98478
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,
});