feat: 组件切换动画过渡效果,查询ip转移到后端实现
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user