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 @@