feat: 组件切换动画过渡效果,查询ip转移到后端实现

This commit is contained in:
taoran
2023-12-01 16:38:09 +08:00
parent fc8377adde
commit 6720ef722b
15 changed files with 86 additions and 89 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ const router = createRouter({
}
},
})
router.beforeEach((to, from, next) => {
// _form: ‘_’表示占位变量,可以不被使用
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
}