From d46f2a035d21a48853ffebcab6a5382777b91b82 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sun, 12 Oct 2025 16:39:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=8C=87=E7=A4=BA=E5=99=A8=EF=BC=8C=E4=BC=98=E5=8C=96=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=8F=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/StatusBar.vue | 64 -------------------------------- web/src/layouts/AppLayout.vue | 1 + 2 files changed, 1 insertion(+), 64 deletions(-) diff --git a/web/src/components/StatusBar.vue b/web/src/components/StatusBar.vue index 3f3f4546..da56279a 100644 --- a/web/src/components/StatusBar.vue +++ b/web/src/components/StatusBar.vue @@ -33,10 +33,6 @@ -
-
- {{ statusText }} -
@@ -58,7 +54,6 @@ const { activeCount: activeCountRef } = storeToRefs(taskerStore) // 响应式数据 const currentTime = ref('') -const systemStatus = ref('online') // 计算属性 const organization = computed(() => infoStore.organization) @@ -89,19 +84,6 @@ const greeting = computed(() => { return `${greetingText}!${currentUser.value}` }) -const statusText = computed(() => { - switch (systemStatus.value) { - case 'online': - return '在线' - case 'offline': - return '离线' - case 'maintenance': - return '维护中' - default: - return '未知' - } -}) - const activeTaskCount = computed(() => activeCountRef.value || 0) const openTaskCenter = () => { @@ -257,52 +239,6 @@ onUnmounted(() => { font-weight: 500; } -.status-indicator { - display: flex; - align-items: center; - gap: 4px; - padding: 2px 6px; - border-radius: 4px; - font-size: 11px; - font-weight: 500; - - &.online { - background-color: #f0fdf4; - color: #16a34a; - - .status-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background-color: #16a34a; - } - } - - &.offline { - background-color: #fef2f2; - color: #dc2626; - - .status-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background-color: #dc2626; - } - } - - &.maintenance { - background-color: #fffbeb; - color: #d97706; - - .status-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background-color: #d97706; - } - } -} - // 响应式设计 @media (max-width: 768px) { .status-bar { diff --git a/web/src/layouts/AppLayout.vue b/web/src/layouts/AppLayout.vue index 33ba55ea..141fde73 100644 --- a/web/src/layouts/AppLayout.vue +++ b/web/src/layouts/AppLayout.vue @@ -145,6 +145,7 @@ const mainList = [{ class="nav-item task-center" :class="{ active: isDrawerOpen }" @click="taskerStore.openDrawer()" + v-if="activeTaskCount > 0" >