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