quanyawei
2024-01-25 a4831debee63c7071a261c5f6ecfa62fd535b2ab
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,
});