quanyawei
2024-07-09 4632427b1483a8497b636722ceeaed7f1c3cf1d9
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,
});