导航栏样式调整

This commit is contained in:
付民康
2025-03-14 16:32:12 +08:00
parent f2a0d29269
commit b7d3afa26f
3 changed files with 33 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
<template>
<router-link to="/notice?status=all&message_type=mr">
<router-link to="/personalCenter?status=all&message_type=mr">
<d-badge class="g-notice" :count="counts" :offset="[-2, 4]" :hidden="!counts" status="danger">
<GIcon name="gt-line-notice" />
<d-icon style="font-size: 16px" name="notice" />
</d-badge>
</router-link>
</template>
@@ -12,7 +12,7 @@ import { getMessageCount } from '@/api/notice';
import { addEventListener, offEvent } from '@/utils/eventBus';
import debounce from 'lodash/debounce';
const counts = ref(0);
const counts = ref(9);
const getCounts = () => {
getMessageCount().then((result) => {
counts.value = result.data?.reduce((prev: number, curr: Record<string, any>) => {
@@ -39,6 +39,7 @@ onBeforeUnmount(() => {
.g-notice {
cursor: pointer;
margin: 0 8px;
padding-top: 6px;
&-list {
display: flex;
flex-direction: column;