From 9484a696b38c00def131471967580996f3cfc610 Mon Sep 17 00:00:00 2001 From: yushunrui <364203175@qq.com> Date: Thu, 11 Jan 2024 21:05:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=B0=E5=A2=9E=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E6=BF=80=E6=B4=BB=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/public/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/public/user.ts b/src/shared/public/user.ts index 87e7ba8..5310bab 100644 --- a/src/shared/public/user.ts +++ b/src/shared/public/user.ts @@ -37,7 +37,7 @@ export class UserShared { // else if (conf.cond[0] == 'time') return collection.active[fmtId] == -1 || collection.active[fmtId] > G.time; else if (conf.cond[0] == 'time') return conf.cond[1] == -1 || collection.active?.[fmtId] > G.time; else if (conf.cond[0] == 'model') return Object.values(collection.model).find(i => i.id == conf.cond[1]); - else if (conf.cond[0] == 'heroskin') return collection.heroskin[conf.cond[1]]; + else if (conf.cond[0] == 'heroskin') return conf.cond[1] in collection.heroskin; else return false; } } \ No newline at end of file