From 05527965e2f3d66ab1549d745b8aa98c4da24cc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?=
<15040126243@163.com>
Date: Thu, 26 Mar 2026 11:06:50 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E5=BF=AB=E9=80=9F=E7=82=B9=E5=87=BB=E9=A1=B5=E7=AD=BE?=
=?UTF-8?q?=E5=88=B7=E6=96=B0=E5=87=BA=E7=8E=B0404=E9=97=AE=E9=A2=98=20upd?=
=?UTF-8?q?ate=20=E4=BC=98=E5=8C=96=20=E4=BC=98=E5=8C=96=E9=A1=B5=E7=AD=BE?=
=?UTF-8?q?=E5=85=A8=E5=B1=8F=E6=98=BE=E7=A4=BA=E5=B1=95=E7=A4=BA=E5=BD=A2?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/TagsView/index.vue | 143 ++++++++++++++++++-----
src/plugins/tab.ts | 4 +
2 files changed, 116 insertions(+), 31 deletions(-)
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) {