瀏覽代碼

fix: adjust sideBar

icenaked 3 年之前
父節點
當前提交
f132f31be8
共有 1 個文件被更改,包括 27 次插入21 次删除
  1. 27 21
      src/components/Sidebar.vue

+ 27 - 21
src/components/Sidebar.vue

@@ -39,48 +39,54 @@ import { useRoute } from "vue-router";
 export default {
     setup() {
         const items = [
+          // {
+          //   icon: "el-icon-lx-file",
+          //   title: "我的文件",
+          //   index:3,
+          //   subs: [
+          //     {
+          //       index: "/fileList",
+          //       title: "我的文件"
+          //     },
+          //     {
+          //       index: "/fileDetail",
+          //       title: "文件详情",
+          //     },
+          //     {
+          //       index: "/upload",
+          //       title: "文件上传",
+          //     },
+          //   ]
+          // },
           {
             icon: "el-icon-lx-file",
+            index: "/fileList",
             title: "我的文件",
-            index:3,
-            subs: [
-              {
-                index: "/fileList",
-                title: "我的文件"
-              },
-              {
-                index: "/fileDetail",
-                title: "文件详情",
-              },
-              {
-                index: "/upload",
-                title: "文件上传",
-              },
-            ]
           },
+
           {
               icon: "el-icon-lx-cascades",
               index: "/config",
               title: "模型配置",
           },
 
-
           {
             icon: "el-icon-star-off",
             index: "/modelDetail",
             title: "模型训练",
           },
+
           {
             icon: "el-icon-coin",
             index: "/modelList",
             title:"机器学习模型",
           },
-          {
-            icon: "el-icon-coin",
-            index: "/dlModelList",
-            title:"深度学习模型",
 
-          },
+          // {
+          //   icon: "el-icon-coin",
+          //   index: "/dlModelList",
+          //   title:"深度学习模型",
+          // },
 
           {
             icon: "el-icon-pie-chart",