diff --git a/src/enum/route.ts b/src/enum/route.ts
index 40e74c40..67c824c3 100644
--- a/src/enum/route.ts
+++ b/src/enum/route.ts
@@ -5,6 +5,7 @@ export enum EnumRoutePath {
'not-found' = '/404',
'no-permission' = '/403',
'service-error' = '/500',
+ 'reload' = '/reload',
// 自定义路由
'dashboard' = '/dashboard',
'dashboard-analysis' = '/dashboard/analysis',
@@ -22,6 +23,8 @@ export enum EnumRouteTitle {
'not-found' = '未找到',
'no-permission' = '无权限',
'service-error' = '服务器错误',
+ 'reload' = '重载',
+ // 自定义路由
'dashboard' = '仪表盘',
'dashboard-analysis' = '分析页',
'dashboard-workbench' = '工作台',
diff --git a/src/hooks/common/useRouterChange.ts b/src/hooks/common/useRouterChange.ts
index f2c58f2d..ca723fce 100644
--- a/src/hooks/common/useRouterChange.ts
+++ b/src/hooks/common/useRouterChange.ts
@@ -1,5 +1,6 @@
import { useRouter, useRoute } from 'vue-router';
import type { RouteLocationRaw } from 'vue-router';
+import { EnumRoutePath } from '@/enum';
import { router as globalRouter, RouteNameMap } from '@/router';
import type { LoginModuleType } from '@/interface';
@@ -61,9 +62,14 @@ export default function useRouterChange(inSetup: boolean = true) {
}
}
+ function toReload(redirectUrl: string) {
+ router.push({ path: EnumRoutePath.reload, query: { redirectUrl } });
+ }
+
return {
toHome,
toLogin,
- toCurrentLogin
+ toCurrentLogin,
+ toReload
};
}
diff --git a/src/interface/theme.ts b/src/interface/theme.ts
index caca774a..3d80e768 100644
--- a/src/interface/theme.ts
+++ b/src/interface/theme.ts
@@ -15,13 +15,13 @@ export interface ThemeSettings {
menuStyle: MenuStyle;
/** 头部样式 */
headerStyle: HeaderStyle;
- /** 多标签样式 */
+ /** 多页签样式 */
multiTabStyle: MultiTabStyle;
/** 面包屑样式 */
crumbsStyle: CrumbsStyle;
/** 页面样式 */
pageStyle: PageStyle;
- /** 固定头部和多标签 */
+ /** 固定头部和多页签 */
fixedHeaderAndTab: boolean;
/** 显示重载按钮 */
showReload: boolean;
@@ -70,9 +70,9 @@ interface MenuStyle {
}
interface MultiTabStyle {
- /** 多标签高度 */
+ /** 多页签高度 */
height: number;
- /** 多标签可见 */
+ /** 多页签可见 */
visible: boolean;
/** 背景颜色 */
bgColor: string;
diff --git a/src/layouts/BasicLayout/components/GlobalTab/index.vue b/src/layouts/BasicLayout/components/GlobalTab/index.vue
index ccfdaeb4..d8e706ab 100644
--- a/src/layouts/BasicLayout/components/GlobalTab/index.vue
+++ b/src/layouts/BasicLayout/components/GlobalTab/index.vue
@@ -1,25 +1,33 @@
- 爱在西元前
- 不该
- 超人不会飞
- 手写的从前
- 哪里都是你
- 这是MultiTab组件
+
+ {{ item.meta?.title }}
+
+
+
+