2023-03-22 15:53:29 +08:00

13 lines
313 B
JavaScript

import { defineClientConfig } from '@vuepress/client'
export default defineClientConfig({
enhance({ router }) {
router.beforeEach((to) => {
if (typeof _hmt !== "undefined") {
if (to.path) {
_hmt.push(["_trackPageview", to.fullPath]);
}
}
})
},
})