dev
This commit is contained in:
@@ -354,7 +354,10 @@ const buildUniversalGrid = (source: IEquipment[]) => {
|
|||||||
// Fallback to legacy stone layout when category keywords are not present.
|
// Fallback to legacy stone layout when category keywords are not present.
|
||||||
if (!sections.length && source.length > 0) {
|
if (!sections.length && source.length > 0) {
|
||||||
const legacySource = source.filter(
|
const legacySource = source.filter(
|
||||||
(item) => item.suit.length > 1 || item.categorize.includes("套装") || item.categorize.includes("通宝"),
|
(item) =>
|
||||||
|
item.suit.length > 1 ||
|
||||||
|
item.categorize.includes("套装") ||
|
||||||
|
item.categorize.includes("通宝"),
|
||||||
);
|
);
|
||||||
const legacyGrid = buildSuitGrid(legacySource);
|
const legacyGrid = buildSuitGrid(legacySource);
|
||||||
if (legacyGrid.some(Boolean)) {
|
if (legacyGrid.some(Boolean)) {
|
||||||
@@ -824,7 +827,10 @@ const rarityChoices = [
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<template v-if="equipTab === 'suit'">
|
<template v-if="equipTab === 'suit'">
|
||||||
<div class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1" :style="iconWrapStyle">
|
<div
|
||||||
|
class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1"
|
||||||
|
:style="iconWrapStyle"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
v-for="item in suitOptions"
|
v-for="item in suitOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@@ -930,7 +936,10 @@ const rarityChoices = [
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<template v-if="oathTab === 'suit'">
|
<template v-if="oathTab === 'suit'">
|
||||||
<div class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1" :style="iconWrapStyle">
|
<div
|
||||||
|
class="flex max-w-full flex-nowrap gap-1.5 overflow-x-auto pb-1"
|
||||||
|
:style="iconWrapStyle"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
v-for="item in suitOptions"
|
v-for="item in suitOptions"
|
||||||
:key="`oath-${item.id}`"
|
:key="`oath-${item.id}`"
|
||||||
|
|||||||
Reference in New Issue
Block a user