diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index 78b5dc5..62c7dd7 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -39,7 +39,16 @@
关闭左侧
关闭右侧
全部关闭
- 全屏显示
+
+
+
+ 全屏显示
+
+
+
+ 退出全屏
+
+
@@ -50,30 +59,18 @@
@@ -628,4 +667,46 @@ onBeforeUnmount(() => {
}
}
}
+
+body.tags-fullscreen-mode {
+ overflow: hidden;
+}
+
+body.tags-fullscreen-mode .drawer-bg,
+body.tags-fullscreen-mode .sidebar-container,
+body.tags-fullscreen-mode .navbar {
+ display: none !important;
+}
+
+.main-container.tags-fullscreen-mode {
+ position: fixed !important;
+ inset: 0 !important;
+ width: 100vw !important;
+ height: 100vh !important;
+ margin-left: 0 !important;
+ z-index: 2000;
+ overflow: hidden;
+ background: var(--app-shell-bg);
+}
+
+.main-container.tags-fullscreen-mode .layout-header {
+ gap: 0;
+ padding: 12px 12px 0;
+}
+
+.main-container.tags-fullscreen-mode .layout-header.fixed-header {
+ position: relative;
+ top: 0;
+ right: auto;
+ width: auto !important;
+}
+
+.main-container.tags-fullscreen-mode .app-main,
+.main-container.tags-fullscreen-mode .app-main.with-fixed-header,
+.main-container.tags-fullscreen-mode .app-main.with-fixed-header.with-tags-view {
+ height: calc(100vh - var(--tags-fullscreen-header-height, 50px));
+ min-height: calc(100vh - var(--tags-fullscreen-header-height, 50px)) !important;
+ padding-top: 12px !important;
+ overflow: auto;
+}
diff --git a/src/plugins/tab.ts b/src/plugins/tab.ts
index 1f673b3..73dc479 100644
--- a/src/plugins/tab.ts
+++ b/src/plugins/tab.ts
@@ -9,6 +9,10 @@ export default {
*/
async refreshPage(obj?: RouteLocationNormalized): Promise {
const { path, query, matched } = router.currentRoute.value;
+ // 防止在重定向过程中重复刷新
+ if (path.startsWith('/redirect/')) {
+ return Promise.resolve();
+ }
if (obj === undefined) {
matched.forEach((m: RouteLocationMatched) => {
if (m.components && m.components.default && m.components.default.name) {