🐛 修复纳塔背景&icon渲染异常

This commit is contained in:
目棃
2024-09-01 11:53:48 +08:00
parent dbfce8e610
commit 7e1a47638a
2 changed files with 15 additions and 2 deletions

View File

@@ -73,7 +73,11 @@ onMounted(async () => {
if (props.data.offering) {
offer.value = await saveImgLocal(props.data.offering.icon);
}
props.theme === "dark" ? (icon.value = iconLight.value) : (icon.value = iconDark.value);
if (props.theme === "dark") {
icon.value = iconLight.value;
} else {
icon.value = iconDark.value;
}
});
onUnmounted(() => {