diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java index 3d1ad59..001b79f 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java @@ -211,7 +211,8 @@ public class SysDepartServiceImpl extends ServiceImpl
@@ -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) +}