feat: 百度统计,处理vite代理后ip查询不可用问题

This commit is contained in:
taoran
2023-11-30 18:53:03 +08:00
parent f3bdf85c93
commit fc8377adde
8 changed files with 52 additions and 27 deletions
+1
View File
@@ -16,6 +16,7 @@ const router = createRouter({
})
router.beforeEach((to, from, next) => {
if (to.meta.title && to.meta.title != '') {
console.log(from)
let oldTitle = document.title
document.title = <string>to.meta.title + ' - ' + oldTitle
}