feat: 百度统计,处理vite代理后ip查询不可用问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user