From bf6b316d0d89d0a93e0899d95a952530d6cc4472 Mon Sep 17 00:00:00 2001 From: wujingling0908 <2.com> Date: Tue, 29 Sep 2026 19:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E=E6=96=87=E6=9C=AC=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/abstract.vue | 16 +++++++++++++--- src/components/business-handle.vue | 19 ++++++++++--------- src/components/footer-bar-input.vue | 6 ++++-- src/store/app.js | 16 ++++++++++------ src/utils/utils.js | 2 +- 5 files changed, 38 insertions(+), 21 deletions(-) diff --git a/src/components/abstract.vue b/src/components/abstract.vue index 6f1c3cb..de6a1c6 100644 --- a/src/components/abstract.vue +++ b/src/components/abstract.vue @@ -54,10 +54,20 @@ const businessHandle = (userId) => { ) { return Post("notify/info", { userInfoId: userId }) .then((res) => { - if (res.data?.contents?.length > 0) { - businessHandleInfo.value = res.data + if (import.meta.env.VITE_USER_NODE_ENV === 'development') { + businessHandleInfo.value = { + contents: [ + { + name: '测试待办' + } + ] + } } else { - businessHandleInfo.value = {} + if (res.data?.contents?.length > 0) { + businessHandleInfo.value = res.data + } else { + businessHandleInfo.value = {} + } } store?.setBusinessHandleInfo?.(businessHandleInfo.value) }) diff --git a/src/components/business-handle.vue b/src/components/business-handle.vue index 1d17966..a7fef87 100644 --- a/src/components/business-handle.vue +++ b/src/components/business-handle.vue @@ -46,18 +46,18 @@