|
@@ -5,6 +5,10 @@
|
|
@select="handleSelect"
|
|
@select="handleSelect"
|
|
active-text-color="#409EFF"
|
|
active-text-color="#409EFF"
|
|
>
|
|
>
|
|
|
|
+ <el-menu-item :style="{'--theme': theme}" index="/knowledge"
|
|
|
|
+ ><svg-icon icon-class="dashboard" />
|
|
|
|
+ 知识图谱
|
|
|
|
+ </el-menu-item>
|
|
<template v-for="(item, index) in topMenus">
|
|
<template v-for="(item, index) in topMenus">
|
|
<!-- <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"
|
|
<!-- <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"
|
|
><svg-icon :icon-class="item.meta.icon" /> -->
|
|
><svg-icon :icon-class="item.meta.icon" /> -->
|
|
@@ -32,6 +36,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { constantRoutes } from "@/router";
|
|
import { constantRoutes } from "@/router";
|
|
|
|
+import knowledge from "../../router/knowledge";
|
|
|
|
|
|
// 隐藏侧边栏路由
|
|
// 隐藏侧边栏路由
|
|
const hideList = ['/index', '/user/profile'];
|
|
const hideList = ['/index', '/user/profile'];
|
|
@@ -66,6 +71,8 @@ export default {
|
|
},
|
|
},
|
|
// 所有的路由信息
|
|
// 所有的路由信息
|
|
routers() {
|
|
routers() {
|
|
|
|
+ console.info('permission',this.$store.state.permission)
|
|
|
|
+ console.info('topbarRouters',this.$store.state.permission.topbarRouters)
|
|
return this.$store.state.permission.topbarRouters;
|
|
return this.$store.state.permission.topbarRouters;
|
|
},
|
|
},
|
|
// 设置子路由
|
|
// 设置子路由
|