diff --git a/vue/src/components/Menu.vue b/vue/src/components/Menu.vue index 4dc8c8c..039cb42 100644 --- a/vue/src/components/Menu.vue +++ b/vue/src/components/Menu.vue @@ -98,7 +98,7 @@ import i3 from '@/assets/图标3.png'; import i4 from '@/assets/图标4.png'; const router = useRouter(); -const activeIndex = ref(0); +// const activeIndex = ref(0); // 定义组件属性 const props = defineProps({ @@ -113,34 +113,34 @@ const props = defineProps({ const emit = defineEmits(['menu-click']); // 菜单数据 -const menuItems = ref([ - { - name: '医疗知识图谱', - path: '/kg-display', - icon: '🏥', - - }, - { - name: '知识图谱构建', - path: '/kg-builder', - icon: '🔧' - }, - { - name: '知识图谱问答', - path: '/kg-qa', - icon: '💬' - }, - { - name: '知识图谱数据', - path: '/kg-data', - icon: '📊' - }, - { - name: '图谱可视化设置', - path: '/kg-style', - icon: '' - }, -]); +// const menuItems = ref([ +// { +// name: '医疗知识图谱', +// path: '/kg-display', +// icon: '🏥', +// +// }, +// { +// name: '知识图谱构建', +// path: '/kg-builder', +// icon: '🔧' +// }, +// { +// name: '知识图谱问答', +// path: '/kg-qa', +// icon: '💬' +// }, +// { +// name: '知识图谱数据', +// path: '/kg-data', +// icon: '📊' +// }, +// { +// name: '图谱可视化设置', +// path: '/kg-style', +// icon: '' +// }, +// ]); // 活跃菜单索引 const activeIndex = ref(props.initialActive); @@ -150,8 +150,9 @@ const isCollapsed = ref(false); const menuItems = [ {name: '医疗知识图谱', path: '/kg-display', icon: i1}, - {name: '知识图谱构建', path: '/kg-construction', icon: i2}, + {name: '知识图谱构建', path: '/kg-builder', icon: i2}, {name: '知识图谱问答', path: '/kg-qa', icon: i3}, + {name: '知识图谱数据', path: '/kg-data', icon: i4}, {name: '知识图谱数据', path: '/kg-data', icon: i4} ];