🍱 更新5.5部分资源,适配新版本返回数据

#147
This commit is contained in:
目棃
2025-03-27 09:53:39 +08:00
parent 39f2a7dc31
commit 928c71ead8
7 changed files with 36 additions and 50 deletions

View File

@@ -4,7 +4,7 @@
<TMiImg :ori="true" :src="data.bg" alt="bg" />
</div>
<div class="tur-ws-icon">
<img :src="icon" alt="icon" />
<TMiImg :src="icon" :ori="true" alt="icon" />
</div>
<div class="tur-ws-content">
<div class="tur-ws-title">
@@ -54,13 +54,12 @@ const { theme } = storeToRefs(useAppStore());
const props = defineProps<TurWorldSubProps>();
const imgFilter = computed<string>(() => {
if (props.data.name !== "纳塔") return "none";
if (theme.value === "dark") return "none";
return "invert(0.75)";
});
const icon = computed<string>(() => {
if (theme.value === "dark") return props.data.iconLight;
return props.data.iconDark;
if (props.data.icon) return props.data.icon;
return props.data.iconLight;
});
</script>
<style lang="scss" scoped>