diff --git a/src/components/gachaRecord/gro-echarts.vue b/src/components/gachaRecord/gro-echarts.vue index 120162ce..bf1782c0 100644 --- a/src/components/gachaRecord/gro-echarts.vue +++ b/src/components/gachaRecord/gro-echarts.vue @@ -1,5 +1,7 @@ + diff --git a/src/components/gachaRecord/gro-history.vue b/src/components/gachaRecord/gro-history.vue index 1e412e8d..bc1049fd 100644 --- a/src/components/gachaRecord/gro-history.vue +++ b/src/components/gachaRecord/gro-history.vue @@ -155,12 +155,13 @@ function getBox(id: number): TItemBoxData { display: "inner", clickable: true, lt: `/icon/element/${cFind.element}元素.webp`, - ltSize: "30px", + ltSize: "20px", innerHeight: 20, innerIcon: `/icon/weapon/${cFind.weapon}.webp`, innerText: cFind.name, }; - } else if (wFind) { + } + if (wFind) { return { bg: `/icon/bg/${wFind.star}-Star.webp`, icon: `/WIKI/weapon/${wFind.id}.webp`, @@ -169,13 +170,23 @@ function getBox(id: number): TItemBoxData { display: "inner", clickable: true, lt: wFind.weaponIcon, - ltSize: "30px", + ltSize: "20px", innerHeight: 20, innerText: wFind.name, }; - } else { - throw new Error("未找到对应角色或武器"); } + return { + bg: "/icon/bg/0-Star.webp", + icon: "/source/UI/empty/webp", + size: "80px", + height: "80px", + display: "inner", + clickable: false, + lt: "", + ltSize: "0", + innerHeight: 20, + innerText: "未找到对应角色或武器", + }; }