feat(menu): enhance menu component with new chat functionality and localization updates

- Updated the menu component to include a new chat option, improving user navigation.
- Refactored the menu layout to allow for sticky behavior during scrolling, enhancing usability.
- Added localization support for the new chat feature in English, Korean, Russian, and Chinese.
- Adjusted the menu store to reflect the new chat option and maintain consistent menu structure.
This commit is contained in:
wizardchen
2026-06-11 16:26:33 +08:00
committed by lyingbug
parent 00ad8adb71
commit 8112cdbf85
6 changed files with 129 additions and 138 deletions
+4 -4
View File
@@ -18,17 +18,17 @@ const createMenuChildren = () => reactive<MenuChild[]>([])
export const useMenuStore = defineStore('menuStore', () => {
const menuArr = reactive<MenuItem[]>([
{ title: '', titleKey: 'menu.knowledgeBase', icon: 'zhishiku', path: 'knowledge-bases' },
{ title: '', titleKey: 'menu.agents', icon: 'agent', path: 'agents' },
{ title: '', titleKey: 'menu.organizations', icon: 'organization', path: 'organizations' },
{
title: '',
titleKey: 'menu.chat',
titleKey: 'menu.newChat',
icon: 'prefixIcon',
path: 'creatChat',
childrenPath: 'chat',
children: createMenuChildren()
},
{ title: '', titleKey: 'menu.knowledgeBase', icon: 'zhishiku', path: 'knowledge-bases' },
{ title: '', titleKey: 'menu.agents', icon: 'agent', path: 'agents' },
{ title: '', titleKey: 'menu.organizations', icon: 'organization', path: 'organizations' },
{ title: '', titleKey: 'menu.settings', icon: 'setting', path: 'settings' },
{ title: '', titleKey: 'menu.logout', icon: 'logout', path: 'logout' }
])