add FileExplorerPage

This commit is contained in:
Timi
2026-04-03 13:43:31 +08:00
parent 2665acc885
commit ded231671a
8 changed files with 519 additions and 93 deletions

View File

@@ -4,10 +4,9 @@ import MainLayout from "@/layout/MainLayout.vue";
import tabs from "@/router/tabs";
import { DEFAULT_BODY_BACKGROUND, useGlobalUIStore } from "@/store/globalUIStore";
import { useSettingStore } from "@/store/settingStore";
import LoginPage from "@/pages/system/LoginPage.vue";
import NotFoundPage from "@/pages/system/NotFoundPage.vue";
import ServerIndexPage from "@/pages/system/ServerIndexPage.vue";
import FileDetailPage from "@/pages/detail/FileDetailPage.vue";
import FileExplorerPage from "@/pages/file/FileExplorerPage.vue";
import ServerLogPage from "@/pages/detail/ServerLogPage.vue";
const router = createRouter({
@@ -28,18 +27,6 @@ const router = createRouter({
name: "RootLayout",
component: RootLayout,
children: [
{
path: "/login",
name: "LoginPage",
meta: {
depth: 1,
ignoreConnectCheck: true,
navBarVisible: false,
tabBarVisible: false,
bodyBackground: "#FFF"
},
component: LoginPage
},
{
path: "/server-index",
name: "ServerIndexPage",
@@ -63,16 +50,17 @@ const router = createRouter({
children: [
...tabs,
{
path: "/files/detail/:id",
name: "FileDetailPage",
path: "/files/:pathMatch(.*)+",
name: "FileExplorerPage",
meta: {
depth: 3,
dynamicDepth: true,
baseDepth: 2,
navBarVisible: true,
navBarCanBack: true,
navBarTitle: "文件详情",
navBarTitle: "文件",
tabBarVisible: false
},
component: FileDetailPage
component: FileExplorerPage
},
{
path: "/server/logs",

View File

@@ -12,7 +12,8 @@ const tabs: RouteRecordRaw[] = [
navBarVisible: true,
navBarTitle: "文件",
tabBarVisible: true,
tabBarPadding: true
tabBarPadding: true,
bodyBackground: "#FFF"
},
component: FilePage
},
@@ -24,7 +25,8 @@ const tabs: RouteRecordRaw[] = [
navBarVisible: true,
navBarTitle: "状态",
tabBarVisible: true,
tabBarPadding: true
tabBarPadding: true,
bodyBackground: "#FFF"
},
component: ServerStatusPage
},
@@ -37,7 +39,7 @@ const tabs: RouteRecordRaw[] = [
navBarTitle: "设置",
tabBarVisible: true,
tabBarPadding: true,
bodyBackground: "var(--app-bg)"
bodyBackground: "#FFF"
},
component: SettingsPage
}