From f7bf42b5254c95edcc28fa902ae03aaf81b40da2 Mon Sep 17 00:00:00 2001 From: libaigui <1418591636@qq.com> Date: Tue, 31 Dec 2024 14:35:16 +0800 Subject: [PATCH] fix: Fix the unexpected error issue where the parmas parameter value is undefined --- lib/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index d132687..b600b7f 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -16,7 +16,7 @@ function formatParams (queryKey: string, value: any): string[] { queryKey = queryKey.replace(/=/g, '') let result: string[] = [] - switch (value.constructor) { + switch (value && value.constructor) { case String: case Number: case Boolean: