|
|
@@ -10,64 +10,7 @@ const userStore = useUserStore()
|
|
|
|
|
|
const isCollapse = defineModel<boolean>()
|
|
|
|
|
|
-const menuList = ref([
|
|
|
- {
|
|
|
- index: '1',
|
|
|
- label: 'Dashboard',
|
|
|
- icon: 'icon_data_fill_b',
|
|
|
- path: '/dashboard'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '2',
|
|
|
- label: 'Booking',
|
|
|
- icon: 'icon_booking__fill_b',
|
|
|
- path: '/booking'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '3',
|
|
|
- label: 'Tracking',
|
|
|
- icon: 'icon_tracking__fill_b',
|
|
|
- path: '/tracking'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4',
|
|
|
- label: 'System Management',
|
|
|
- icon: 'icon_system__management_fill_b',
|
|
|
- type: 'list',
|
|
|
- children: [
|
|
|
- {
|
|
|
- index: '4-1',
|
|
|
- label: 'System Message',
|
|
|
- path: '/system-message'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-2',
|
|
|
- label: 'System Settings',
|
|
|
- path: '/SystemSettings'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-3',
|
|
|
- label: 'Operation Log',
|
|
|
- path: '/Operationlog'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-4',
|
|
|
- label: 'Chat Log',
|
|
|
- path: '/chat-log'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-5',
|
|
|
- label: 'AI API Log',
|
|
|
- path: '/ai-api-log'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-6',
|
|
|
- label: 'Prompt Configuration',
|
|
|
- path: '/PromptConfiguration'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
-])
|
|
|
+const menuList = ref()
|
|
|
watch(
|
|
|
() => userStore.userInfo?.uname,
|
|
|
() => {
|
|
|
@@ -81,7 +24,7 @@ const getMenuList = () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-// getMenuList()
|
|
|
+getMenuList()
|
|
|
//监听窗口大小
|
|
|
const handler = () => {
|
|
|
return (() => {
|
|
|
@@ -134,10 +77,10 @@ router.afterEach(() => {
|
|
|
|
|
|
// 路由跳转函数
|
|
|
const changeRouter = (path: any) => {
|
|
|
- if(path == '/PromptConfiguration') {
|
|
|
- emitter.emit('checkPrompt');
|
|
|
+ if (path == '/PromptConfiguration') {
|
|
|
+ emitter.emit('checkPrompt')
|
|
|
} else {
|
|
|
- emitter.emit('checknoPrompt');
|
|
|
+ emitter.emit('checknoPrompt')
|
|
|
}
|
|
|
if (sessionStorage.getItem('searchTableQeury')) {
|
|
|
sessionStorage.removeItem('searchTableQeury')
|