Browse Source

all

yangrongze
hanyuqing 4 months ago
parent
commit
0e1e375233
  1. 61
      vue/src/components/Menu.vue

61
vue/src/components/Menu.vue

@ -98,7 +98,7 @@ import i3 from '@/assets/图标3.png';
import i4 from '@/assets/图标4.png'; import i4 from '@/assets/图标4.png';
const router = useRouter(); const router = useRouter();
const activeIndex = ref(0); // const activeIndex = ref(0);
// //
const props = defineProps({ const props = defineProps({
@ -113,34 +113,34 @@ const props = defineProps({
const emit = defineEmits(['menu-click']); const emit = defineEmits(['menu-click']);
// //
const menuItems = ref([ // const menuItems = ref([
{ // {
name: '医疗知识图谱', // name: '',
path: '/kg-display', // path: '/kg-display',
icon: '🏥', // icon: '🏥',
//
}, // },
{ // {
name: '知识图谱构建', // name: '',
path: '/kg-builder', // path: '/kg-builder',
icon: '🔧' // icon: '🔧'
}, // },
{ // {
name: '知识图谱问答', // name: '',
path: '/kg-qa', // path: '/kg-qa',
icon: '💬' // icon: '💬'
}, // },
{ // {
name: '知识图谱数据', // name: '',
path: '/kg-data', // path: '/kg-data',
icon: '📊' // icon: '📊'
}, // },
{ // {
name: '图谱可视化设置', // name: '',
path: '/kg-style', // path: '/kg-style',
icon: '' // icon: ''
}, // },
]); // ]);
// //
const activeIndex = ref(props.initialActive); const activeIndex = ref(props.initialActive);
@ -150,8 +150,9 @@ const isCollapsed = ref(false);
const menuItems = [ const menuItems = [
{name: '医疗知识图谱', path: '/kg-display', icon: i1}, {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-qa', icon: i3},
{name: '知识图谱数据', path: '/kg-data', icon: i4},
{name: '知识图谱数据', path: '/kg-data', icon: i4} {name: '知识图谱数据', path: '/kg-data', icon: i4}
]; ];

Loading…
Cancel
Save