From 52865cb8cf61b43ce4c7d62c579ca4e78ee4aaf2 Mon Sep 17 00:00:00 2001 From: JayChou Date: Sun, 10 Nov 2024 15:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B6=E9=83=A8nav?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E6=96=B0=E9=97=BB=E8=AF=A6=E6=83=85=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E4=B8=8D=E5=87=86=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/demo/main-home/components/NewsList/index.vue | 1 + .../main-home/components/articleManagement/index.vue | 1 + .../main-home/components/columnManagement/index.vue | 1 + .../views/demo/main-home/components/homePage/index.vue | 9 +++++---- .../views/demo/main-home/components/newsInfo/index.vue | 10 ++++++++++ 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue index 12f1ffc..cc4bc78 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue @@ -100,6 +100,7 @@ path: '/main-home/newsInfo', query: { id: item.id, + type:1 }, }); }; diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/articleManagement/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/articleManagement/index.vue index 77cd3c3..8c0ece9 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/articleManagement/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/articleManagement/index.vue @@ -90,6 +90,7 @@ path: '/main-home/newsInfo', query: { id: item.id, + type:3 }, }) } diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/columnManagement/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/columnManagement/index.vue index c62423a..e2f4297 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/columnManagement/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/columnManagement/index.vue @@ -91,6 +91,7 @@ path: '/main-home/newsInfo', query: { id: item.id, + type:2 }, }) } diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue index d2df64d..f49de7c 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue @@ -41,7 +41,7 @@
@@ -57,7 +57,7 @@
@@ -68,7 +68,7 @@
@@ -150,11 +150,12 @@ const goToNewList = () => { router.push('/main-home/newsList'); }; - const goToNewInfo = (item) => { + const goToNewInfo = (item,type=1) => { router.push({ path: '/main-home/newsInfo', query: { id: item.id, + type:type }, }); }; diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue index 79f2100..8ee9ca5 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue @@ -28,6 +28,8 @@ import {getindexarticleitem} from '@/api/mainHome' import { useRoute,useRouter } from 'vue-router'; import { ref } from 'vue'; +import { useSettingStore } from '/@/store/modules/setting'; +const settingStore = useSettingStore(); const route = useRoute() const router = useRouter() const id = route.query.id @@ -43,6 +45,14 @@ const getInfo = async () => { info.value = res[0] } getInfo() +if(Object.keys(route.query).length > 1 && route.query.type == 2) { + console.log('设置'); + + settingStore.serIndex(5) + +}else if(Object.keys(route.query).length > 1 && route.query.type == 3) { + settingStore.serIndex(6) +}