From 835b304668444cde3685546c0410846b51ed2f5d Mon Sep 17 00:00:00 2001 From: BTMuli Date: Tue, 19 May 2026 19:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E8=B0=83=E6=95=B4=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=8F=82=E6=95=B0=E8=AF=BB=E5=8F=96=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=89=B9=E5=AE=9A=E6=83=85=E5=86=B5=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/WIKI/Character.vue | 2 +- src/pages/WIKI/Weapon.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/WIKI/Character.vue b/src/pages/WIKI/Character.vue index 095e8dc8..cdee9f9c 100644 --- a/src/pages/WIKI/Character.vue +++ b/src/pages/WIKI/Character.vue @@ -44,7 +44,7 @@ const appCData = AppCharacterData.sort( b.id - a.id, ); -const id = useRoute().params.id.toString() ?? "0"; +const id = (useRoute().params?.id ?? 0).toString(); const showSelect = ref(false); const resetSelect = ref(false); const cardsInfo = shallowRef>(appCData); diff --git a/src/pages/WIKI/Weapon.vue b/src/pages/WIKI/Weapon.vue index 12609ae5..5d4dcd35 100644 --- a/src/pages/WIKI/Weapon.vue +++ b/src/pages/WIKI/Weapon.vue @@ -41,7 +41,7 @@ const appWData = AppWeaponData.sort((a, b) => { return b.id - a.id; }); -const id = useRoute().params.id.toString() ?? "0"; +const id = (useRoute().params?.id ?? 0).toString(); const showSelect = ref(false); const resetSelect = ref(false); const cardsInfo = shallowRef>(appWData);