mapstruct-plus/docs/.vuepress/enhanceApp.js
2023-03-04 23:21:36 +08:00

11 lines
240 B
JavaScript

export default ({ router }) => {
router.beforeEach((to, from, next) => {
if (typeof _hmt !== "undefined") {
if (to.path) {
_hmt.push(["_trackPageview", to.fullPath]);
}
}
next();
});
};