zouzs 1 ماه پیش
والد
کامیت
fcc9f43af7

+ 21 - 20
src/router/modules/home.ts

@@ -1,25 +1,26 @@
-const { VITE_HIDE_HOME } = import.meta.env;
+const {VITE_HIDE_HOME} = import.meta.env;
 const Layout = () => import("@/layout/index.vue");
 
 export default {
-  path: "/",
-  name: "Home",
-  component: Layout,
-  redirect: "/welcome",
-  meta: {
-    icon: "ep/home-filled",
-    title: "首页",
-    rank: 0
-  },
-  children: [
-    {
-      path: "/welcome",
-      name: "Welcome",
-      component: () => import("@/views/welcome/index.vue"),
-      meta: {
+    path: "/",
+    name: "Home",
+    component: Layout,
+    redirect: "/welcome",
+    meta: {
+        icon: "ep/home-filled",
         title: "首页",
-        showLink: VITE_HIDE_HOME === "true" ? false : true
-      }
-    }
-  ]
+        showLink: false,
+        rank: 0
+    },
+    children: [
+        {
+            path: "/welcome",
+            name: "Welcome",
+            component: () => import("@/views/welcome/index.vue"),
+            meta: {
+                title: "首页",
+                showLink: VITE_HIDE_HOME === "true" ? false : true
+            }
+        }
+    ]
 } satisfies RouteConfigsTable;

+ 2 - 1
src/router/modules/testFingerPrints.ts

@@ -2,7 +2,8 @@
 export default {
     path: "/testFingerPrints",
     meta: {
-        title: "测试信息获取"
+        title: "测试信息获取",
+        showLink: false,
     },
     children: [
         {

+ 2 - 1
src/router/modules/testStorage.ts

@@ -2,7 +2,8 @@
 export default {
     path: "/testStorage",
     meta: {
-        title: "测试存储"
+        title: "测试存储",
+        showLink: false,
     },
     children: [
         {

+ 23 - 22
src/router/modules/testTable.ts

@@ -1,27 +1,28 @@
 // 最简代码,也就是这些字段必须有
 export default {
-  path: "/testTable",
-  meta: {
-    title: "封装表格"
-  },
-  children: [
-    {
-      path: "/testTable/splitTable",
-      name: "SplitTable",
-      component: () => import("@/views/testTable/splitTable/index.vue"),
-      meta: {
+    path: "/testTable",
+    meta: {
         title: "封装表格",
-        showParent: true
-      }
+        showLink: false,
     },
-    {
-      path: "/testTable/PageTable",
-      name: "PageTable",
-      component: () => import("@/views/testTable/pageTable/index.vue"),
-      meta: {
-        title: "整体封装",
-        showParent: true
-      }
-    }
-  ]
+    children: [
+        {
+            path: "/testTable/splitTable",
+            name: "SplitTable",
+            component: () => import("@/views/testTable/splitTable/index.vue"),
+            meta: {
+                title: "封装表格",
+                showParent: true
+            }
+        },
+        {
+            path: "/testTable/PageTable",
+            name: "PageTable",
+            component: () => import("@/views/testTable/pageTable/index.vue"),
+            meta: {
+                title: "整体封装",
+                showParent: true
+            }
+        }
+    ]
 };

+ 2 - 1
src/router/modules/testUpload.ts

@@ -2,7 +2,8 @@
 export default {
     path: "/testUpload",
     meta: {
-        title: "上传文件"
+        title: "上传文件",
+        showLink: false,
     },
     children: [
         {