fix: 使用钉钉官方通知图标

This commit is contained in:
jxxghp
2026-08-22 13:39:23 +08:00
parent 2d02106a7b
commit 17d4dbed1d
4 changed files with 9 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

@@ -83,7 +83,7 @@ const getIcon = computed(() => {
case 'discord':
return getLogoUrl('discord')
case 'dingtalk':
return getLogoUrl('notification')
return getLogoUrl('dingtalk')
case 'webpush':
return getLogoUrl('chrome')
default:
+6 -1
View File
@@ -1,4 +1,4 @@
import { getDisplayImageUrl, getProxyImageUrl } from '@/utils/imageUtils'
import { getDisplayImageUrl, getLogoUrl, getProxyImageUrl, hasLogo } from '@/utils/imageUtils'
import { describe, expect, it } from 'vitest'
describe('image URL helpers', () => {
@@ -23,4 +23,9 @@ describe('image URL helpers', () => {
expect(getProxyImageUrl('data:image/png;base64,abc', { useCache: true })).toBe('data:image/png;base64,abc')
expect(getProxyImageUrl('', { useCache: true })).toBe('')
})
it('exposes the official DingTalk logo for notification channels', () => {
expect(hasLogo('dingtalk')).toBe(true)
expect(getLogoUrl('dingtalk')).toContain('dingtalk')
})
})
+2
View File
@@ -19,6 +19,7 @@ import clawbotLogo from '@/assets/images/logos/clawbot.png'
import telegramLogo from '@/assets/images/logos/telegram.webp'
import slackLogo from '@/assets/images/logos/slack.webp'
import discordLogo from '@/assets/images/logos/discord.png'
import dingtalkLogo from '@/assets/images/logos/dingtalk.jpg'
import synologychatLogo from '@/assets/images/logos/synologychat.png'
import vocechatLogo from '@/assets/images/logos/vocechat.png'
import downloaderLogo from '@/assets/images/logos/downloader.png'
@@ -53,6 +54,7 @@ const logoMap: Record<string, string> = {
telegram: telegramLogo,
slack: slackLogo,
discord: discordLogo,
dingtalk: dingtalkLogo,
synologychat: synologychatLogo,
vocechat: vocechatLogo,
downloader: downloaderLogo,