fix: debug
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ const router = createRouter({
|
||||
router.beforeEach((to, _from, next) => {
|
||||
if (to.meta.title && to.meta.title != '') {
|
||||
let oldTitle = document.title
|
||||
document.title = <string>to.meta.title + ' - ' + oldTitle
|
||||
document.title = <string>to.meta.title + '-' + oldTitle
|
||||
}
|
||||
next()
|
||||
})
|
||||
@@ -31,7 +31,7 @@ router.afterEach((to) => {
|
||||
const detailTitle = title
|
||||
//设置title
|
||||
if (detailTitle) {
|
||||
document.title = detailTitle + ' - ' + import.meta.env.VITE_APP_TITLE
|
||||
document.title = detailTitle + '-' + import.meta.env.VITE_APP_TITLE
|
||||
} else {
|
||||
document.title = import.meta.env.VITE_APP_TITLE
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ export const constantRoute = [
|
||||
component: () => import('@/components/Home/Home.vue'),
|
||||
name: 'home',
|
||||
meta: {
|
||||
keywords: '然部落工具坊,在线工具,开发人员工具,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
|
||||
description: '然部落工具坊,在线工具大全,开发人员工具,日常生活工具,办公助手,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
|
||||
keywords: '然部落,在线工具,开发人员工具,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
|
||||
description: '然部落,在线工具,在线工具大全,开发人员工具,日常生活工具,办公助手,时间戳转换,加密,解密,md5,进制转换,二维码,正则表达式,json格式化,照片处理,字数统计',
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user