chore: 修改消息图标

This commit is contained in:
dap 2024-09-27 14:14:29 +08:00
parent 1b31dde36a
commit 0c14eff32f
3 changed files with 6 additions and 3 deletions

View File

@ -3,13 +3,13 @@ import type { NotificationItem } from '@vben/layouts';
import { computed, ref, watch } from 'vue';
import { useAppConfig } from '@vben/hooks';
import { SvgMessageUrl } from '@vben/icons';
import { $t } from '@vben/locales';
import { useAccessStore, useUserStore } from '@vben/stores';
import { useEventSource } from '@vueuse/core';
import { notification } from 'ant-design-vue';
import dayjs from 'dayjs';
import { random } from 'lodash-es';
import { defineStore } from 'pinia';
const { apiURL, clientId } = useAppConfig(
@ -66,8 +66,8 @@ export const useNotifyStore = defineStore(
});
notificationList.value.unshift({
// 随机头像
avatar: `https://api.multiavatar.com/${random(0, 10_000)}.png`,
// avatar: `https://api.multiavatar.com/${random(0, 10_000)}.png`, 随机头像
avatar: SvgMessageUrl,
date: dayjs().format('YYYY-MM-DD HH:mm:ss'),
isRead: false,
message,

View File

@ -0,0 +1 @@
<svg t="1727417479543" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4291" width="64" height="64"><path d="M240 658.08h220.784l55.744 65.04 55.744-65.04h220.768V272H240v386.08z m-48 32V240a16 16 0 0 1 16-16h617.04a16 16 0 0 1 16 16v450.08a16 16 0 0 1-16 16H594.336l-65.664 76.64a16 16 0 0 1-24.304 0l-65.664-76.64H208a16 16 0 0 1-16-16zM366.256 498.56a33.488 33.488 0 1 1 0-66.992 33.488 33.488 0 0 1 0 66.992z m150.272 0a33.488 33.488 0 1 1 0-66.992 33.488 33.488 0 0 1 0 66.992z m150.24 0a33.488 33.488 0 1 1 0-66.992 33.488 33.488 0 0 1 0 66.992z" fill="#1677ff" p-id="4292"></path></svg>

After

Width:  |  Height:  |  Size: 638 B

View File

@ -23,3 +23,5 @@ export {
SvgCardIcon,
SvgDownloadIcon,
};
export { default as SvgMessageUrl } from './icons/message.svg';