Skip to content
  • This project
    • Loading...
  • Sign in

PaoPao / userWeb

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • userWeb
  • src
  • router
  • typings.d.ts
  • 杨俊's avatar
    Init · ee7a1044
    ee7a1044
    杨俊 authored 2024-05-27 15:34:49 +0800
typings.d.ts 381 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import 'vue-router';

declare module 'vue-router' {
  interface RouteMeta {
    // options
    roles?: string[];
    // every route must declare
    requiresAuth: boolean; // need login
    icon?: string;
    // menu select key
    menuSelectKey?: string;
    hideInMenu?: boolean;
    isRedirect?: boolean;
    title?: string;
    order?: number;
    breadcrumb?: string[];
  }
}