Skip to content

Commit 2c980d1

Browse files
committed
fix(System Management): The left menu bar-logo information is incorrect
1 parent 04d4638 commit 2c980d1

File tree

3 files changed

+66
-35
lines changed

3 files changed

+66
-35
lines changed

frontend/src/components/layout/LayoutDsl.vue

Lines changed: 64 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -55,43 +55,60 @@ const showSysmenu = computed(() => {
5555
<template>
5656
<div class="system-layout">
5757
<div class="left-side" :class="collapse && 'left-side-collapse'">
58-
<template v-if="appearanceStore.isBlue">
59-
<img
60-
v-if="collapse"
61-
width="30"
62-
height="30"
63-
:src="logo_fold_blue"
64-
style="margin: 0 0 6px 5px; cursor: pointer"
65-
@click="toChatIndex"
66-
/>
67-
<img
68-
v-else
69-
width="130"
70-
height="31"
71-
:src="logo_blue"
72-
style="margin-bottom: 6px; cursor: pointer"
73-
@click="toChatIndex"
74-
/>
75-
</template>
76-
<template v-else-if="appearanceStore.themeColor === 'custom'">
77-
<custom_small
78-
v-if="collapse"
79-
style="margin: 0 0 6px 5px; cursor: pointer"
80-
@click="toChatIndex"
81-
></custom_small>
82-
<LOGOCustom
83-
v-else
84-
style="margin-bottom: 6px; cursor: pointer"
85-
@click="toChatIndex"
86-
></LOGOCustom>
58+
<template v-if="showSysmenu">
59+
<div @click="toChatIndex" class="sys-management">
60+
<custom_small
61+
v-if="appearanceStore.themeColor !== 'default'"
62+
:style="{ marginLeft: collapse ? '5px' : 0 }"
63+
:class="!collapse && 'collapse-icon'"
64+
></custom_small>
65+
<LOGO_fold
66+
v-else
67+
:style="{ marginLeft: collapse ? '5px' : 0 }"
68+
:class="!collapse && 'collapse-icon'"
69+
></LOGO_fold>
70+
<span v-if="!collapse">{{ $t('training.system_anagement') }}</span>
71+
</div>
8772
</template>
8873
<template v-else>
89-
<LOGO_fold
90-
v-if="collapse"
91-
style="margin: 0 0 6px 5px; cursor: pointer"
92-
@click="toChatIndex"
93-
></LOGO_fold>
94-
<LOGO v-else style="margin-bottom: 6px; cursor: pointer" @click="toChatIndex"></LOGO>
74+
<template v-if="appearanceStore.isBlue">
75+
<img
76+
v-if="collapse"
77+
width="30"
78+
height="30"
79+
:src="logo_fold_blue"
80+
style="margin: 0 0 6px 5px; cursor: pointer"
81+
@click="toChatIndex"
82+
/>
83+
<img
84+
v-else
85+
width="130"
86+
height="31"
87+
:src="logo_blue"
88+
style="margin-bottom: 6px; cursor: pointer"
89+
@click="toChatIndex"
90+
/>
91+
</template>
92+
<template v-else-if="appearanceStore.themeColor === 'custom'">
93+
<custom_small
94+
v-if="collapse"
95+
style="margin: 0 0 6px 5px; cursor: pointer"
96+
@click="toChatIndex"
97+
></custom_small>
98+
<LOGOCustom
99+
v-else
100+
style="margin-bottom: 6px; cursor: pointer"
101+
@click="toChatIndex"
102+
></LOGOCustom>
103+
</template>
104+
<template v-else>
105+
<LOGO_fold
106+
v-if="collapse"
107+
style="margin: 0 0 6px 5px; cursor: pointer"
108+
@click="toChatIndex"
109+
></LOGO_fold>
110+
<LOGO v-else style="margin-bottom: 6px; cursor: pointer" @click="toChatIndex"></LOGO>
111+
</template>
95112
</template>
96113
<Workspace v-if="!showSysmenu" :collapse="collapse"></Workspace>
97114
<Menu :collapse="collapseCopy"></Menu>
@@ -147,6 +164,18 @@ const showSysmenu = computed(() => {
147164
position: relative;
148165
min-width: 240px;
149166
167+
.sys-management {
168+
display: flex;
169+
align-items: center;
170+
font-weight: 500;
171+
font-size: 16px;
172+
cursor: pointer;
173+
margin-bottom: 12px;
174+
.collapse-icon {
175+
margin-right: 8px;
176+
}
177+
}
178+
150179
.bottom {
151180
position: absolute;
152181
bottom: 20px;

frontend/src/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"AI Model Configuration": "AI Model Configuration"
88
},
99
"training": {
10+
"system_anagement": "System Management",
1011
"data_training": "SQL Sample Lib",
1112
"problem_description": "Problem Description",
1213
"sample_sql": "Sample SQL",

frontend/src/i18n/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"AI Model Configuration": "模型配置"
88
},
99
"training": {
10+
"system_anagement": "系统管理",
1011
"data_training": "SQL 示例库",
1112
"problem_description": "问题描述",
1213
"sample_sql": "示例 SQL",

0 commit comments

Comments
 (0)