|
@@ -2,6 +2,7 @@
|
|
|
<div class="sidebar">
|
|
<div class="sidebar">
|
|
|
<el-menu class="sidebar-el-menu" :default-active="onRoutes" :collapse="collapse" background-color="#324157"
|
|
<el-menu class="sidebar-el-menu" :default-active="onRoutes" :collapse="collapse" background-color="#324157"
|
|
|
text-color="#bfcbd9" active-text-color="#20a0ff" unique-opened router>
|
|
text-color="#bfcbd9" active-text-color="#20a0ff" unique-opened router>
|
|
|
|
|
+
|
|
|
<template v-for="item in items">
|
|
<template v-for="item in items">
|
|
|
<template v-if="item.subs">
|
|
<template v-if="item.subs">
|
|
|
<el-submenu :index="item.index" :key="item.index">
|
|
<el-submenu :index="item.index" :key="item.index">
|
|
@@ -57,82 +58,82 @@ export default {
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-cascades",
|
|
|
|
|
- index: "/config",
|
|
|
|
|
- title: "模型配置",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-redpacket_fill",
|
|
|
|
|
- index: "/modelList",
|
|
|
|
|
- title:"深度学习",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-copy",
|
|
|
|
|
- index: "/tabs",
|
|
|
|
|
- title: "我的消息",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-calendar",
|
|
|
|
|
- index: "3",
|
|
|
|
|
- title: "表单相关",
|
|
|
|
|
- subs: [
|
|
|
|
|
- {
|
|
|
|
|
- index: "/form",
|
|
|
|
|
- title: "基本表单",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- index: "/upload",
|
|
|
|
|
- title: "文件上传",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- index: "4",
|
|
|
|
|
- title: "三级菜单",
|
|
|
|
|
- subs: [
|
|
|
|
|
- {
|
|
|
|
|
- index: "/editor",
|
|
|
|
|
- title: "富文本编辑器",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-emoji",
|
|
|
|
|
- index: "/icon",
|
|
|
|
|
- title: "自定义图标",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-pie-chart",
|
|
|
|
|
- index: "/charts",
|
|
|
|
|
- title: "训练结果",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-global",
|
|
|
|
|
- index: "/i18n",
|
|
|
|
|
- title: "国际化功能",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-warn",
|
|
|
|
|
- index: "7",
|
|
|
|
|
- title: "错误处理",
|
|
|
|
|
- subs: [
|
|
|
|
|
- {
|
|
|
|
|
- index: "/permission",
|
|
|
|
|
- title: "权限测试",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- index: "/404",
|
|
|
|
|
- title: "404页面",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- icon: "el-icon-lx-redpacket_fill",
|
|
|
|
|
- index: "/donate",
|
|
|
|
|
- title: "支持作者",
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ icon: "el-icon-lx-cascades",
|
|
|
|
|
+ index: "/config",
|
|
|
|
|
+ title: "模型配置",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ icon: "el-icon-lx-redpacket_fill",
|
|
|
|
|
+ index: "/modelList",
|
|
|
|
|
+ title:"深度学习",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ icon: "el-icon-pie-chart",
|
|
|
|
|
+ index: "/charts",
|
|
|
|
|
+ title: "训练结果",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ icon: "el-icon-lx-copy",
|
|
|
|
|
+ index: "/tabs",
|
|
|
|
|
+ title: "我的消息",
|
|
|
|
|
+ },
|
|
|
|
|
+ // 无用组件
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: "el-icon-lx-calendar",
|
|
|
|
|
+ // index: "3",
|
|
|
|
|
+ // title: "表单相关",
|
|
|
|
|
+ // subs: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // index: "/form",
|
|
|
|
|
+ // title: "基本表单",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // index: "/upload",
|
|
|
|
|
+ // title: "文件上传",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // index: "4",
|
|
|
|
|
+ // title: "三级菜单",
|
|
|
|
|
+ // subs: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // index: "/editor",
|
|
|
|
|
+ // title: "富文本编辑器",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ],
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ],
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: "el-icon-lx-emoji",
|
|
|
|
|
+ // index: "/icon",
|
|
|
|
|
+ // title: "自定义图标",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: "el-icon-lx-global",
|
|
|
|
|
+ // index: "/i18n",
|
|
|
|
|
+ // title: "国际化功能",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: "el-icon-lx-warn",
|
|
|
|
|
+ // index: "7",
|
|
|
|
|
+ // title: "错误处理",
|
|
|
|
|
+ // subs: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // index: "/permission",
|
|
|
|
|
+ // title: "权限测试",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // index: "/404",
|
|
|
|
|
+ // title: "404页面",
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ],
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: "el-icon-lx-redpacket_fill",
|
|
|
|
|
+ // index: "/donate",
|
|
|
|
|
+ // title: "支持作者",
|
|
|
|
|
+ // }
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|