From ddcff699205a478a3ba6a8e5a97f42c8e22f78c8 Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Tue, 13 Jan 2026 08:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/sidebar.vue | 2 +- src/router/index.ts | 8 +++++++- src/views/admin/index.vue | 21 ++++++++++----------- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/components/sidebar.vue b/src/components/sidebar.vue index 964eaed..046d444 100644 --- a/src/components/sidebar.vue +++ b/src/components/sidebar.vue @@ -59,7 +59,7 @@ interface MenuItem { const menuItems: MenuItem[] = [ { path: '/controlPanel/overview', name: '总览', icon: HomeOutlined }, { path: '/controlPanel/container', name: '容器实例', icon: ConsoleSqlOutlined }, - // { path: '/controlPanel/fileStore', name: '文件存储', icon: FolderOpenOutlined }, + { path: '/controlPanel/fileStore', name: '文件存储', icon: FolderOpenOutlined }, { path: '/controlPanel/image', name: '镜像', icon: GlobalOutlined }, { path: '/controlPanel/publicData', name: '公开数据', icon: LaptopOutlined }, { diff --git a/src/router/index.ts b/src/router/index.ts index ce56605..1014f6b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -249,6 +249,12 @@ const routes: RouteRecordRaw[] = [ name: "Image", component: () => import("@/views/admin/image/index.vue"), }, + + { + path: "fileStore", + name: "fileStore", + component: () => import("@/views/admin/fileStore/index.vue"), + }, { path: "contract", name: "contract", @@ -377,7 +383,7 @@ const router = createRouter({ // ====== 添加全局前置守卫 ====== router.beforeEach((to, from, next) => { console.log("Navigating to:", to.path); - const list = ["/layout/home","/document/introdution"]; + const list = ["/layout/home", "/document/introdution"]; if (list.indexOf(to.path) != -1) { next(); return; diff --git a/src/views/admin/index.vue b/src/views/admin/index.vue index d4e147f..0ec9878 100644 --- a/src/views/admin/index.vue +++ b/src/views/admin/index.vue @@ -23,15 +23,16 @@