mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 新增多页签缓存功能
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import type { RouteLocationNormalizedLoaded } from 'vue-router';
|
||||
import type { MenuOption } from 'naive-ui';
|
||||
import { EnumLoginModule } from '@/enum';
|
||||
|
||||
@ -7,6 +8,16 @@ export type GlobalMenuOption = MenuOption & {
|
||||
routePath: string;
|
||||
};
|
||||
|
||||
/** 多页签 */
|
||||
export interface MultiTab {
|
||||
routes: MultiTabRoute[];
|
||||
activeRoute: string;
|
||||
}
|
||||
export type MultiTabRoute = Partial<RouteLocationNormalizedLoaded> & {
|
||||
path: string;
|
||||
fullPath: string;
|
||||
};
|
||||
|
||||
/** 登录模块 */
|
||||
export type LoginModuleType = keyof typeof EnumLoginModule;
|
||||
|
||||
|
@ -96,6 +96,8 @@ interface MultiTabStyle {
|
||||
bgColor: string;
|
||||
/** 多页签模式 */
|
||||
mode: MultiTabMode;
|
||||
/** 开启多页签缓存 */
|
||||
isCache: boolean;
|
||||
/** 多页签模式列表 */
|
||||
modeList: MultiTabModeList[];
|
||||
}
|
||||
|
Reference in New Issue
Block a user