mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 修复祈愿图标渲染异常
This commit is contained in:
@@ -30,8 +30,8 @@ const hint = getEndHint();
|
|||||||
function getIcon(): string {
|
function getIcon(): string {
|
||||||
const find = getWikiBrief(props.data.itemId);
|
const find = getWikiBrief(props.data.itemId);
|
||||||
if (!find) return `/source/UI/paimon.webp`;
|
if (!find) return `/source/UI/paimon.webp`;
|
||||||
if (props.data.id.length === 5) return `/WIKI/weapon/${props.data.itemId}.webp`;
|
if ("element" in find) return `/WIKI/character/${props.data.itemId}.webp`;
|
||||||
return `/WIKI/character/${props.data.itemId}.webp`;
|
return `/WIKI/weapon/${props.data.itemId}.webp`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getEndHint(): string {
|
function getEndHint(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user