quanyawei
2024-07-12 8321e6da34ce075e1e897b1caf3445a068380122
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,
});