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) { " >