提交 91b4ba55 authored 作者: coderBryanFu's avatar coderBryanFu

feat:更新系统标题

上级 3967f51d
...@@ -84,6 +84,7 @@ let isShowSearchBar = computed(() => { ...@@ -84,6 +84,7 @@ let isShowSearchBar = computed(() => {
return store.isShowSearchBar; return store.isShowSearchBar;
}); });
const router = useRouter(); const router = useRouter();
const route = useRoute()
const personTypeList = ref([]); const personTypeList = ref([]);
...@@ -231,14 +232,18 @@ const toolList = ref([ ...@@ -231,14 +232,18 @@ const toolList = ref([
]) ])
const handleToModule = (item, index) => { const handleToModule = (item, index) => {
homeActiveTitleIndex.value = index
if (index === 1) { if (index === 1) {
homeActiveTitleIndex.value = index
router.push({ router.push({
path: item.path path: item.path
}) })
} else { } else {
const curRoute = router.resolve({ const curRoute = router.resolve({
path: item.path path: item.path,
query: {
titleIndex: 2
}
}); });
window.open(curRoute.href, "_blank"); window.open(curRoute.href, "_blank");
} }
...@@ -269,7 +274,12 @@ const handleClickToolBox = () => { ...@@ -269,7 +274,12 @@ const handleClickToolBox = () => {
onMounted(() => { onMounted(() => {
handleGetPersonType(); handleGetPersonType();
homeActiveTitleIndex.value = Number(window.localStorage.getItem('homeActiveTitleIndex')) if (route.query.titleIndex) {
homeActiveTitleIndex.value = Number(route.query.titleIndex)
} else {
homeActiveTitleIndex.value = Number(window.localStorage.getItem('homeActiveTitleIndex'))
}
}); });
onUnmounted(() => { onUnmounted(() => {
...@@ -457,26 +467,31 @@ onUnmounted(() => { ...@@ -457,26 +467,31 @@ onUnmounted(() => {
margin-left: 72px; margin-left: 72px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.menu-item { .menu-item {
margin-top: 36px; margin-top: 36px;
width: 280px; width: 280px;
height: 24px; height: 24px;
display: flex; display: flex;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
.title { .title {
color: var(--color-main-active); color: var(--color-main-active);
font-size: 20px; font-size: 20px;
} }
} }
.icon { .icon {
width: 24px; width: 24px;
height: 24px; height: 24px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.title { .title {
margin-left: 16px; margin-left: 16px;
height: 24px; height: 24px;
...@@ -506,17 +521,20 @@ onUnmounted(() => { ...@@ -506,17 +521,20 @@ onUnmounted(() => {
backdrop-filter: blur(30px); backdrop-filter: blur(30px);
box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1); box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1);
background: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.8);
.menu-content { .menu-content {
width: 562px; width: 562px;
height: 348px; height: 348px;
margin-top: 8px; margin-top: 8px;
margin-left: 72px; margin-left: 72px;
.menu-item { .menu-item {
margin-top: 36px; margin-top: 36px;
width: 280px; width: 280px;
height: 24px; height: 24px;
display: flex; display: flex;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
.title { .title {
color: var(--color-main-active); color: var(--color-main-active);
...@@ -533,6 +551,7 @@ onUnmounted(() => { ...@@ -533,6 +551,7 @@ onUnmounted(() => {
height: 100%; height: 100%;
} }
} }
.title { .title {
margin-left: 16px; margin-left: 16px;
height: 24px; height: 24px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论