From 25f70fd51bb8fc5c15d2baab099d06b3e7b077c6 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sat, 14 May 2022 11:01:43 +0800 Subject: [PATCH] perf: standard code format in the layout folder --- src/layout/components/navbar.vue | 18 ++++++++++------- src/layout/components/notice/noticeItem.vue | 3 ++- src/layout/components/setting/index.vue | 4 ++-- src/layout/components/sidebar/breadCrumb.vue | 3 ++- src/layout/components/sidebar/horizontal.vue | 16 ++++++++------- src/layout/components/sidebar/mixNav.vue | 20 +++++++++++-------- src/layout/components/sidebar/sidebarItem.vue | 6 +++--- src/layout/components/tag/index.vue | 4 ++-- src/layout/index.vue | 3 ++- 9 files changed, 45 insertions(+), 32 deletions(-) diff --git a/src/layout/components/navbar.vue b/src/layout/components/navbar.vue index 5c1e13e9d..510dc9a1e 100644 --- a/src/layout/components/navbar.vue +++ b/src/layout/components/navbar.vue @@ -78,19 +78,22 @@ function translationEn() { + 简体中文 + /> + 简体中文 + - English + + + English @@ -107,8 +110,9 @@ function translationEn() { {{ t("buttons.hsLoginOut") }} + /> + {{ t("buttons.hsLoginOut") }} + diff --git a/src/layout/components/notice/noticeItem.vue b/src/layout/components/notice/noticeItem.vue index ebffe8f4e..2e3da1ac6 100644 --- a/src/layout/components/notice/noticeItem.vue +++ b/src/layout/components/notice/noticeItem.vue @@ -72,7 +72,8 @@ function hoverDescription(event, description) { :type="props.noticeItem?.status" size="small" class="notice-title-extra" - >{{ props.noticeItem?.extra }} + > + {{ props.noticeItem?.extra }} diff --git a/src/layout/components/setting/index.vue b/src/layout/components/setting/index.vue index decd9c13a..3fd87071a 100644 --- a/src/layout/components/setting/index.vue +++ b/src/layout/components/setting/index.vue @@ -445,8 +445,8 @@ nextTick(() => { height="15" style="margin-right: 4px" /> - 清空缓存并返回登录页 + 清空缓存并返回登录页 + diff --git a/src/layout/components/sidebar/breadCrumb.vue b/src/layout/components/sidebar/breadCrumb.vue index 6367da50e..7eae1b593 100644 --- a/src/layout/components/sidebar/breadCrumb.vue +++ b/src/layout/components/sidebar/breadCrumb.vue @@ -104,8 +104,9 @@ const handleLink = (item: RouteLocationMatched): any => { {{ transformI18n(item.meta.title) }} + {{ transformI18n(item.meta.title) }} + {{ transformI18n(item.meta.title) }} diff --git a/src/layout/components/sidebar/horizontal.vue b/src/layout/components/sidebar/horizontal.vue index c81ac5784..32fe77c3d 100644 --- a/src/layout/components/sidebar/horizontal.vue +++ b/src/layout/components/sidebar/horizontal.vue @@ -109,17 +109,19 @@ function translationEn() { @click="translationCh" > - 简体中文 + + + 简体中文 - English + + + English + @@ -136,8 +138,8 @@ function translationEn() { icon="logout-circle-r-line" style="margin: 5px" /> - {{ t("buttons.hsLoginOut") }} + {{ t("buttons.hsLoginOut") }} + diff --git a/src/layout/components/sidebar/mixNav.vue b/src/layout/components/sidebar/mixNav.vue index 57bc53f66..a4bbb555c 100644 --- a/src/layout/components/sidebar/mixNav.vue +++ b/src/layout/components/sidebar/mixNav.vue @@ -154,17 +154,21 @@ function translationEn() { 简体中文 + + + + 简体中文 + English + + + + English + @@ -181,8 +185,8 @@ function translationEn() { icon="logout-circle-r-line" style="margin: 5px" /> - {{ t("buttons.hsLoginOut") }} + {{ t("buttons.hsLoginOut") }} + diff --git a/src/layout/components/sidebar/sidebarItem.vue b/src/layout/components/sidebar/sidebarItem.vue index 93c4b517c..75494a8af 100644 --- a/src/layout/components/sidebar/sidebarItem.vue +++ b/src/layout/components/sidebar/sidebarItem.vue @@ -172,9 +172,9 @@ function resolvePath(routePath) {