From cf78f6aa6ab8f7f29a5f019d55f45cfff4c99c72 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 7 Nov 2021 17:45:24 +0800 Subject: [PATCH] fix: update --- src/layout/components/navbar.vue | 16 ++++++++++++++++ src/layout/components/sidebar/horizontal.vue | 16 ++++++++++++++++ src/layout/components/sidebar/sidebarItem.vue | 2 -- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/layout/components/navbar.vue b/src/layout/components/navbar.vue index 18b6d0107..ee1e12ef7 100644 --- a/src/layout/components/navbar.vue +++ b/src/layout/components/navbar.vue @@ -78,6 +78,8 @@ function translationEn() { color: locale === 'zh' ? '#f4f4f5' : '#000' }" @click="translationCh" + >简体中文 English @@ -220,6 +224,18 @@ function translationEn() { color: #606266; background: #f0f0f0; } + + .check-zh { + position: absolute; + left: 20px; + top: 13px; + } + + .check-en { + position: absolute; + bottom: 13px; + left: 20px; + } } .logout { diff --git a/src/layout/components/sidebar/horizontal.vue b/src/layout/components/sidebar/horizontal.vue index 9e43bc62f..7fc7715df 100644 --- a/src/layout/components/sidebar/horizontal.vue +++ b/src/layout/components/sidebar/horizontal.vue @@ -151,6 +151,8 @@ onMounted(() => { color: locale === 'zh' ? '#f4f4f5' : '#000' }" @click="translationCh" + >简体中文 { color: locale === 'en' ? '#f4f4f5' : '#000' }" @click="translationEn" + >English @@ -202,6 +206,18 @@ onMounted(() => { color: #606266; background: #f0f0f0; } + + .check-zh { + position: absolute; + left: 20px; + top: 13px; + } + + .check-en { + position: absolute; + bottom: 13px; + left: 20px; + } } .logout { diff --git a/src/layout/components/sidebar/sidebarItem.vue b/src/layout/components/sidebar/sidebarItem.vue index 538fbb49e..035e9f5bd 100644 --- a/src/layout/components/sidebar/sidebarItem.vue +++ b/src/layout/components/sidebar/sidebarItem.vue @@ -80,7 +80,6 @@ function resolvePath(routePath) { " >