From ae979b47c01aa0439dede35b520c1f16eedff412 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 15 Aug 2025 00:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/notice/index.vue | 6 +++--- src/views/materials/appointment/index.vue | 12 +++++++++--- src/views/materials/purchaseDoc/index.vue | 8 +++++++- src/views/message/config/index.vue | 7 ++++--- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index 0deeb5a..e23aad2 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -54,9 +54,9 @@ const onNewsClick = (item: any) => { //并且写入pinia noticeStore.state.value.notices = newsList.value; //如果有formPath,就前往 - console.log('🚀 ~ onNewsClick ~ item.formPath:', item.formPath, newsList.value); - if (newsList.value[item].formPath) { - proxy?.$tab.openPage('/' + newsList.value[item].formPath, '', { id: newsList.value[item].businessId, type: 'view' }); + console.log('🚀 ~ onNewsClick ~ item.formPath:', newsList.value); + if (newsList.value[item].route) { + proxy?.$tab.openPage('/' + newsList.value[item].route, '', { id: newsList.value[item].detailId, type: 'view' }); } }; diff --git a/src/views/materials/appointment/index.vue b/src/views/materials/appointment/index.vue index 5784a52..877231b 100644 --- a/src/views/materials/appointment/index.vue +++ b/src/views/materials/appointment/index.vue @@ -1,15 +1,16 @@