From 3961921d1d495162bf8a854c357dd5f9659e8828 Mon Sep 17 00:00:00 2001 From: IGeekFan Date: Sat, 25 May 2024 03:12:08 +0800 Subject: [PATCH] Refactor base-layout.vue for better code organization and readability --- src/config/base-layout.vue | 19 +++------- src/view/layout/base-layout.vue | 63 ++++++++++++--------------------- 2 files changed, 27 insertions(+), 55 deletions(-) diff --git a/src/config/base-layout.vue b/src/config/base-layout.vue index 3c66c3f..c93c62f 100644 --- a/src/config/base-layout.vue +++ b/src/config/base-layout.vue @@ -20,30 +20,22 @@ - - 关注 + 关注 - - 标签 + 标签 - - 消息 + 消息 - - CMS + CMS
@@ -78,7 +70,6 @@ 关注 标签 消息 - VUE2 旧版本 @@ -138,8 +129,6 @@ export default { return '标签' case '/notification/userComment': return '消息' - case 'vvlog-vue2': - return 'VUE2 旧版本' default: return '首页' } diff --git a/src/view/layout/base-layout.vue b/src/view/layout/base-layout.vue index 3930f1b..c93c62f 100644 --- a/src/view/layout/base-layout.vue +++ b/src/view/layout/base-layout.vue @@ -5,8 +5,13 @@
- + @@ -15,44 +20,22 @@ - - - 关注 + 关注 - - - 标签 + 标签 - - - 消息 + 消息 - - - - - VUE2 旧版本 - - - - - CMS - - - - - - - CMS VUE2 + CMS
@@ -66,8 +49,13 @@ - + @@ -79,12 +67,9 @@ @@ -144,8 +129,6 @@ export default { return '标签' case '/notification/userComment': return '消息' - case 'vvlog-vue2': - return 'VUE2 旧版本' default: return '首页' } @@ -185,8 +168,8 @@ export default { window.open('https://vvlog-vue2.igeekfan.cn/') return } - this.$router.push(command); - } + this.$router.push(command) + }, }, } @@ -254,7 +237,7 @@ export default { @media screen and (max-width: 768px) { .header-menu-desktop { - display: none + display: none; } .header-menu-mobile {