baidu.js 254 B

123456789
  1. export default ({ app: { router }, store }) => {
  2. router.afterEach((to, from) => {
  3. /* 告诉增加一个PV */
  4. try {
  5. window._hmt = window._hmt || []
  6. window._hmt.push(['_trackPageview', to.fullPath])
  7. } catch (e) {}
  8. })
  9. }