mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 21:47:06 +08:00
add i18n basic structure
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="content-box">
|
||||
<a href="https://github.com/pycook/cmdb" target="_blank">
|
||||
<span class="action">
|
||||
源代码 -> <a-icon type="github" style="font-size: 20px; color: #002140"></a-icon>
|
||||
{{ $t('tip.sourceCode') }} -> <a-icon type="github" style="font-size: 20px; color: #002140"></a-icon>
|
||||
</span>
|
||||
</a>
|
||||
<!-- <a href="https://pro.loacg.com/docs/getting-started" target="_blank">
|
||||
@@ -39,7 +39,7 @@
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</a-dropdown>
|
||||
<lang-select />
|
||||
<lang-select v-if="showLocale" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -48,12 +48,18 @@
|
||||
import NoticeIcon from '@/components/NoticeIcon'
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import LangSelect from '@/components/tools/LangSelect'
|
||||
import { showLocale } from '@/locales'
|
||||
|
||||
export default {
|
||||
name: 'UserMenu',
|
||||
components: {
|
||||
NoticeIcon, LangSelect
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
showLocale: showLocale
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['Logout']),
|
||||
...mapGetters(['nickname', 'avatar']),
|
||||
|
Reference in New Issue
Block a user