From fe129d3f9f5eaf496f294fd0194e5c3283827e77 Mon Sep 17 00:00:00 2001 From: osiris Date: Mon, 27 May 2024 17:41:51 +0800 Subject: [PATCH] fix --- src/router/index.ts | 7 +++++++ src/router/router.ts | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 18296c3..ea414bc 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -21,6 +21,13 @@ router.beforeEach((to, _from, next) => { let oldTitle = document.title document.title = 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() }) //路由后置卫士 diff --git a/src/router/router.ts b/src/router/router.ts index 974c9f4..dc12c30 100644 --- a/src/router/router.ts +++ b/src/router/router.ts @@ -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格式化,照片处理,字数统计', } }, //工具