♻️ 剔除名片JSON冗余数据

This commit is contained in:
目棃
2024-12-31 10:34:12 +08:00
parent 02049dbdd6
commit 7c0ad79f67
670 changed files with 285 additions and 908 deletions

View File

@@ -3,7 +3,12 @@
<div v-if="props.data" class="ton-container">
<slot name="left"></slot>
<div class="ton-box">
<img alt="bg" class="ton-bg" v-if="props.data" :src="props.data.profile" />
<img
alt="bg"
class="ton-bg"
v-if="props.data"
:src="`/WIKI/nameCard/profile/${props.data.name}.webp`"
/>
<div class="ton-content">
<span>{{ props.data.name }}</span>
<span>{{ parseNameCard(props.data.desc) }}</span>

View File

@@ -5,7 +5,11 @@
<span :title="props.data.desc">{{ props.data.desc }}</span>
</template>
<template #prepend>
<v-img width="80px" style="margin-right: 10px" :src="props.data.icon" />
<v-img
width="80px"
style="margin-right: 10px"
:src="`/WIKI/nameCard/icon/${props.data.name}.webp`"
/>
</template>
</v-list-item>
</v-list>
@@ -21,7 +25,7 @@ const emit = defineEmits<TopNameCardEmits>();
const bgImage = computed<string>(() => {
if (props.data.name === "原神·印象") return "none;";
return `url("${props.data.bg}")`;
return `url("/WIKI/nameCard/bg/${props.data.name}.webp")`;
});
</script>
<style lang="css" scoped>