pref: colorful card

This commit is contained in:
Ou
2024-10-12 12:49:20 +08:00
parent 5d87ce3ea4
commit 698253e4ae
10 changed files with 109 additions and 42 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export default defineSource(async () => {
const res: Res = await $fetch(url)
if (!res.ok || res.data.realtime.length === 0) throw new Error("Cannot fetch data")
return res.data.realtime
.filter(k => !k.icon_desc || k.icon_desc !== "荐")
.filter(k => !k.icon_desc || !/[荐促商宣]/.test(k.icon_desc))
.slice(0, 20)
.map((k) => {
const keyword = k.word_scheme ? k.word_scheme : `#${k.word}#`