mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Menu Language
This commit is contained in:
@@ -37,14 +37,13 @@
|
||||
<el-icon v-if="item.meta.icon">
|
||||
<component :is="resolveIcon(item.meta.icon)"/>
|
||||
</el-icon>
|
||||
<span>{{ item.meta.title }}</span>
|
||||
<span>{{ t(`menu.${item.meta.title}`) }}</span>
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
|
||||
<div v-else class="top-bar-title">
|
||||
<span class="split"/>
|
||||
<!-- <span>System manage</span> -->
|
||||
<span>{{ t('common.system_manage') }}</span>
|
||||
<span>{{ t('common.system_manage') }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -59,12 +58,11 @@
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<el-tooltip content="System manage" placement="bottom" v-else>
|
||||
<el-tooltip :content="t('common.system_manage')" placement="bottom" v-else>
|
||||
<div class="header-icon-btn" @click="toSystem">
|
||||
<el-icon>
|
||||
<iconsystem/>
|
||||
</el-icon>
|
||||
<!-- <span>System manage</span> -->
|
||||
</div>
|
||||
</el-tooltip>
|
||||
|
||||
@@ -94,7 +92,7 @@
|
||||
<el-icon>
|
||||
<iconsystem/>
|
||||
</el-icon>
|
||||
<span>System manage</span>
|
||||
<span>{{ t('common.system_manage') }}</span>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
|
||||
@@ -126,7 +124,7 @@
|
||||
<el-icon v-if="item.meta.icon">
|
||||
<component :is="resolveIcon(item.meta.icon)"/>
|
||||
</el-icon>
|
||||
<span>{{ item.meta.title }}</span>
|
||||
<span>{{ t(`menu.${item.meta.title}`) }}</span>
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
</div>
|
||||
@@ -175,7 +173,8 @@ const routerList = computed(() => {
|
||||
})
|
||||
|
||||
const sysRouterList = computed(() => {
|
||||
return router.getRoutes().filter(route => route.path.includes('/system'))
|
||||
const result = router.getRoutes().filter(route => route.path.includes('/system') && !route.redirect)
|
||||
return result
|
||||
})
|
||||
|
||||
const showSubmenu = computed(() => {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"menu": {
|
||||
"dashboard": "Dashboard",
|
||||
"chat": "Chat",
|
||||
"datasource": "Data Source",
|
||||
"system": "System"
|
||||
"Data Q&A": "Data Q&A",
|
||||
"Data Connections": "Data Connections",
|
||||
"Dashboard": "Dashboard",
|
||||
"AI Model Configuration": "AI Model Configuration"
|
||||
},
|
||||
"common": {
|
||||
"back": "Back",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"menu": {
|
||||
"dashboard": "仪表盘",
|
||||
"chat": "聊天",
|
||||
"datasource": "数据源",
|
||||
"system": "系统"
|
||||
"Data Q&A": "智能问数",
|
||||
"Data Connections": "数据源",
|
||||
"Dashboard": "仪表盘",
|
||||
"AI Model Configuration": "模型配置"
|
||||
},
|
||||
"common": {
|
||||
"back": "返回",
|
||||
|
||||
Reference in New Issue
Block a user