feat(projects): 新增多页签缓存功能

This commit is contained in:
Soybean
2021-11-20 21:30:49 +08:00
parent ffe987832f
commit d86f891c64
15 changed files with 132 additions and 43 deletions

View File

@ -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;

View File

@ -96,6 +96,8 @@ interface MultiTabStyle {
bgColor: string;
/** 多页签模式 */
mode: MultiTabMode;
/** 开启多页签缓存 */
isCache: boolean;
/** 多页签模式列表 */
modeList: MultiTabModeList[];
}