From 14a15ab4fda2e50f53b1825ff9628c37d3c1468d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 28 Sep 2024 21:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/itembox/tib-wiki-abyss-2.vue | 6 +----- src/components/itembox/tib-wiki-abyss.vue | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/itembox/tib-wiki-abyss-2.vue b/src/components/itembox/tib-wiki-abyss-2.vue index ef1f89d4..cc200937 100644 --- a/src/components/itembox/tib-wiki-abyss-2.vue +++ b/src/components/itembox/tib-wiki-abyss-2.vue @@ -36,10 +36,6 @@ const box = computed(() => { }); onMounted(async () => { - // 如果是 10000005或 10000007,就是主角 - if (props.modelValue === "10000005" || props.modelValue === "10000007") { - return; - } - avatar.value = AppCharacterData.find((a) => a.id === props.modelValue)!; + avatar.value = AppCharacterData.find((a) => a.id.toString() === props.modelValue.toString())!; }); diff --git a/src/components/itembox/tib-wiki-abyss.vue b/src/components/itembox/tib-wiki-abyss.vue index 817a20c4..4ab365a6 100644 --- a/src/components/itembox/tib-wiki-abyss.vue +++ b/src/components/itembox/tib-wiki-abyss.vue @@ -41,10 +41,6 @@ const box = computed(() => { }); onMounted(async () => { - // 如果是 10000005或 10000007,就是主角 - if (props.modelValue.Item === 10000005 || props.modelValue.Item === 10000007) { - return; - } avatar.value = AppCharacterData.find((a) => a.id === props.modelValue.Item); });