From c03731ff3207b08728741856f594d864dee5fd6a Mon Sep 17 00:00:00 2001 From: riverflow <3011499946@qq.com> Date: Sun, 10 Aug 2025 22:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8MenuLogo.vue=E4=B8=AD=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E5=BD=93=E8=8F=9C=E5=8D=95=E6=A0=8F=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=A0=87=E9=A2=98=E6=96=87=E5=AD=97=E4=B8=8D?= =?UTF-8?q?=E6=94=B6=E7=BC=A9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加show变量,通过布尔值控制文字显示 通过watch监听show变量值的变化,实现延时函数,美化标题收缩效果 --- order-system/src/layout/Menu.vue | 2 +- order-system/src/layout/MenuLogo.vue | 29 +++++++++++++++++++-- order-system/src/layout/header/Collapse.vue | 4 +-- order-system/src/store/collapse/index.ts | 4 +-- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/order-system/src/layout/Menu.vue b/order-system/src/layout/Menu.vue index bb3dd38..eb3e037 100644 --- a/order-system/src/layout/Menu.vue +++ b/order-system/src/layout/Menu.vue @@ -107,7 +107,7 @@ // 获取菜单状态 const collapse = computed(()=>{ - return store.getcollapse + return store.getCollapse }) diff --git a/order-system/src/layout/MenuLogo.vue b/order-system/src/layout/MenuLogo.vue index e6e5cac..2fcadd2 100644 --- a/order-system/src/layout/MenuLogo.vue +++ b/order-system/src/layout/MenuLogo.vue @@ -1,17 +1,42 @@