mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
@@ -66,7 +66,9 @@ function handleSelectW(val: SelectedWValue) {
|
||||
const reg = /\/icon\/weapon\/(.+?)\.webp/;
|
||||
const filterW = AppWeaponData.filter((item) => {
|
||||
if (!val.star.includes(item.star)) return false;
|
||||
return val.weapon.includes(item.weaponIcon.match(reg)![1]);
|
||||
const match = item.weaponIcon.match(reg);
|
||||
if (match === null) return false;
|
||||
return val.weapon.includes(match[1]);
|
||||
});
|
||||
if (filterW.length === 0) {
|
||||
showSnackbar({
|
||||
|
||||
Reference in New Issue
Block a user