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:
@@ -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' }
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user