/** * 左侧导航。 * * 仪表盘打头(打开先看一眼状态),路由紧随其后(这个工具存在的理由),设置垫底。 */ import IconRoute from '~icons/ri/route-line' import IconDashboard from '~icons/ri/dashboard-line' import IconConfig from '~icons/ri/file-list-3-line' import IconRequests from '~icons/ri/pulse-line' import IconConnections from '~icons/ri/links-line' import IconSettings from '~icons/ri/settings-3-line' import type { Component } from 'vue' export interface NavItem { key: string label: string icon: Component /** 还没做的页面标 true,导航上显示但点进去是占位 */ pending?: boolean } export const NAV: NavItem[] = [ { key: 'dashboard', label: '仪表盘', icon: IconDashboard, pending: true }, { key: 'router', label: '路由', icon: IconRoute }, { key: 'config', label: '配置', icon: IconConfig, pending: true }, { key: 'requests', label: '请求', icon: IconRequests, pending: true }, { key: 'connections', label: '连接', icon: IconConnections, pending: true }, { key: 'settings', label: '设置', icon: IconSettings, pending: true }, ]