Skip to content

Commit 66aec78

Browse files
committed
chore(ui): Update Setting page
1 parent 4137a63 commit 66aec78

File tree

10 files changed

+2943
-251
lines changed

10 files changed

+2943
-251
lines changed

frontend/src/api/initialization/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export interface InitializationConfig {
1919
modelName: string;
2020
baseUrl: string;
2121
apiKey?: string;
22+
enabled: boolean;
2223
};
2324
multimodal: {
2425
enabled: boolean;
Lines changed: 4 additions & 0 deletions
Loading

frontend/src/assets/img/user.svg

Lines changed: 4 additions & 0 deletions
Loading

frontend/src/components/menu.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,24 +201,19 @@ let knowledgeIcon = ref('zhishiku-green.svg');
201201
let prefixIcon = ref('prefixIcon.svg');
202202
let settingIcon = ref('setting.svg');
203203
let logoutIcon = ref('logout.svg');
204-
let tenantIcon = ref('setting.svg'); // 暂时使用setting图标
204+
let tenantIcon = ref('user.svg'); // 使用专门的用户图标
205205
let pathPrefix = ref(route.name)
206206
const getIcon = (path) => {
207207
fileAddIcon.value = path == 'knowledgeBase' ? 'file-add-green.svg' : 'file-add.svg';
208208
knowledgeIcon.value = path == 'knowledgeBase' ? 'zhishiku-green.svg' : 'zhishiku.svg';
209209
prefixIcon.value = path == 'creatChat' ? 'prefixIcon-green.svg' : path == 'knowledgeBase' ? 'prefixIcon-grey.svg' : 'prefixIcon.svg';
210210
settingIcon.value = path == 'settings' ? 'setting-green.svg' : 'setting.svg';
211-
tenantIcon.value = path == 'tenant' ? 'setting-green.svg' : 'setting.svg'; // 暂时使用setting图标
211+
tenantIcon.value = path == 'tenant' ? 'user-green.svg' : 'user.svg'; // 使用专门的用户图标
212212
logoutIcon.value = 'logout.svg';
213213
}
214214
getIcon(route.name)
215215
const gotopage = (path) => {
216216
pathPrefix.value = path;
217-
// 如果是系统设置,跳转到初始化配置页面
218-
if (path === 'settings') {
219-
router.push('/initialization');
220-
return;
221-
}
222217
// 处理退出登录
223218
if (path === 'logout') {
224219
authStore.logout();

frontend/src/router/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ const router = createRouter({
6262
{
6363
path: "settings",
6464
name: "settings",
65-
component: () => import("../views/settings/Settings.vue"),
66-
meta: { requiresInit: true }
67-
},
65+
component: () => import("../views/settings/SystemSettings.vue"),
66+
meta: { requiresInit: true }
67+
},
6868
],
6969
},
7070
],

0 commit comments

Comments
 (0)