forked from dyf/dyf-vue-ui
多租户平台
This commit is contained in:
38
src/types/router.d.ts
vendored
Normal file
38
src/types/router.d.ts
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
import { LocationQuery, type RouteMeta as VRouteMeta } from 'vue-router';
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta extends VRouteMeta {
|
||||
link?: string;
|
||||
title?: string;
|
||||
affix?: boolean;
|
||||
noCache?: boolean;
|
||||
activeMenu?: string;
|
||||
icon?: string;
|
||||
breadcrumb?: boolean;
|
||||
}
|
||||
|
||||
interface _RouteRecordBase {
|
||||
hidden?: boolean | string | number;
|
||||
permissions?: string[];
|
||||
roles?: string[];
|
||||
alwaysShow?: boolean;
|
||||
query?: string;
|
||||
parentPath?: string;
|
||||
}
|
||||
|
||||
interface _RouteLocationBase {
|
||||
children?: _RouteRecordBase[];
|
||||
path?: string;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
interface TagView {
|
||||
fullPath?: string;
|
||||
name?: string;
|
||||
path?: string;
|
||||
title?: string;
|
||||
meta?: RouteMeta;
|
||||
query?: LocationQuery;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user