导航栏样式调整
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user