This commit is contained in:
osiris
2024-05-27 17:41:51 +08:00
parent 1dba247410
commit fe129d3f9f
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -21,6 +21,13 @@ router.beforeEach((to, _from, next) => {
let oldTitle = document.title
document.title = <string>to.meta.title + '-' + oldTitle
}
// console.log(to,_from)
// if (window.location.hostname == 'ascii.ranblogs.com') {
// if (to.fullPath != '/ascii' && window.location.hostname == 'mshop.io') {
// next('/ascii')
// } else {
// next()
// }
next()
})
//路由后置卫士
+2 -2
View File
@@ -6,8 +6,8 @@ export const constantRoute = [
component: () => import('@/components/Home/Home.vue'),
name: 'home',
meta: {
keywords: '然部落,在线工具,开发人员工具,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
description: '然部落,在线工具,在线工具大全,开发人员工具,日常生活工具,办公助手,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
keywords: 'Tools-Web,在线工具,开发人员工具,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
description: 'Tools-Web,在线工具,在线工具大全,开发人员工具,日常生活工具,办公助手,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
}
},
//工具