diff --git a/components.d.ts b/components.d.ts
index 1e49101..29113c4 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -22,6 +22,8 @@ declare module 'vue' {
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElUpload: typeof import('element-plus/es')['ElUpload']
Footer: typeof import('./src/components/Footer.vue')['default']
+ FriendLinks: typeof import('./src/components/FriendLinks.vue')['default']
+ PersonalInfo: typeof import('./src/components/PersonalInfo.vue')['default']
TopNavBar: typeof import('./src/components/TopNavBar.vue')['default']
}
}
diff --git a/src/App.vue b/src/App.vue
index 4cf924d..916c68b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -145,7 +145,7 @@ a {
*::-webkit-scrollbar {
/*滚动条整体样式*/
- width : 10px; /*高宽分别对应横竖滚动条的尺寸*/
+ width : 3px; /*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
}
*::-webkit-scrollbar-thumb {
diff --git a/src/components/FriendLinks.vue b/src/components/FriendLinks.vue
new file mode 100644
index 0000000..746ae3b
--- /dev/null
+++ b/src/components/FriendLinks.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/components/PersonalInfo.vue b/src/components/PersonalInfo.vue
new file mode 100644
index 0000000..ca93b9d
--- /dev/null
+++ b/src/components/PersonalInfo.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
PeterAlbus
+
{{ info }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.ts b/src/router/index.ts
index 419421c..c17dad6 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -17,7 +17,7 @@ const routes: Array = [
meta:{
title:'主页——PeterAlbus的博客',
content:{
- keywords:'PeterAlbus,Vue',
+ keywords:'PeterAlbus,Vue,个人博客',
description:'PeterAlbus的博客主页'
}
}
@@ -113,7 +113,7 @@ const routes: Array = [
meta:{
title:'添加友情链接——PeterAlbus的博客',
content:{
- keywords:'PeterAlbus,Vue',
+ keywords:'PeterAlbus,Vue,个人博客',
description:'PeterAlbus的博客'
}
}
@@ -125,18 +125,18 @@ const router = createRouter({
routes
})
-// router.beforeEach((to, from, next)=>{
-// if(to.meta.content) {
-// // @ts-ignore
-// document.querySelector('meta[name="keywords"]').setAttribute('content',to.meta.content.keywords)
-// // @ts-ignore
-// document.querySelector('meta[name="description"]').setAttribute('content',to.meta.content.description)
-// }
-// if(to.meta.title) {
-// // @ts-ignore
-// document.title = to.meta.title
-// }
-// next()
-// })
+router.beforeEach((to, from, next)=>{
+ if(to.meta.content) {
+ // @ts-ignore
+ document.querySelector('meta[name="keywords"]').setAttribute('content',to.meta.content.keywords)
+ // @ts-ignore
+ document.querySelector('meta[name="description"]').setAttribute('content',to.meta.content.description)
+ }
+ if(to.meta.title) {
+ // @ts-ignore
+ document.title = to.meta.title
+ }
+ next()
+})
export default router
diff --git a/src/views/About.vue b/src/views/About.vue
index 810e2e0..db942b3 100644
--- a/src/views/About.vue
+++ b/src/views/About.vue
@@ -20,34 +20,8 @@
-
-
-
-
PeterAlbus
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -55,8 +29,10 @@