From b015dd4f0147e511fd0a96d5b24e93bb01c06e10 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Sat, 4 Mar 2023 14:31:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c3cc14ad..a4e2c6a3 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "event-source-polyfill": "^1.0.31", "global": "^4.4.0", "jetlinks-store": "^0.0.3", - "jetlinks-ui-components": "^1.0.3", + "jetlinks-ui-components": "^1.0.4", "js-cookie": "^3.0.1", "less": "^4.1.3", "less-loader": "^11.1.0", From 67518f28b3ee04a37aeb77350e82c7c9ee7a54c6 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Sat, 4 Mar 2023 15:10:58 +0800 Subject: [PATCH 2/2] update: merge --- src/utils/encodeQuery.ts | 4 ++-- yarn.lock | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/utils/encodeQuery.ts b/src/utils/encodeQuery.ts index f3a15a81..27991057 100644 --- a/src/utils/encodeQuery.ts +++ b/src/utils/encodeQuery.ts @@ -1,11 +1,11 @@ import { isObject, isArray } from 'lodash-es' -const encodeParams = (params: Record) => { +export const encodeParams = (params: Record) => { const _params = new URLSearchParams() for (const key in params) { const _value = params[key] const isArrOrObj = isObject(_value) || isArray(_value) - _params.set(key, isArrOrObj ? encodeParams(_value) : _value) + _params.set(key, isArrOrObj ? JSON.stringify(_value) : _value) } return _params.toString() } diff --git a/yarn.lock b/yarn.lock index e15c1d65..0e856359 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3901,10 +3901,10 @@ jetlinks-store@^0.0.3: resolved "https://registry.npmjs.org/jetlinks-store/-/jetlinks-store-0.0.3.tgz" integrity sha512-AZf/soh1hmmwjBZ00fr1emuMEydeReaI6IBTGByQYhTmK1Zd5pQAxC7WLek2snRAn/HHDgJfVz2hjditKThl6Q== -jetlinks-ui-components@^1.0.3: - version "1.0.3" - resolved "https://registry.jetlinks.cn/jetlinks-ui-components/-/jetlinks-ui-components-1.0.3.tgz#303ca83cf6096721e49e72d1a3a73b054b0aa7fa" - integrity sha512-Jm7tP/CtnK2GIRSPTjd/UOw8emZ3C7/i9af8m+XCM8wi/J1SZh4cZGc487vR1DPxyWZfJjG87Zdy45DZ5EMw2w== +jetlinks-ui-components@^1.0.4: + version "1.0.4" + resolved "https://registry.jetlinks.cn/jetlinks-ui-components/-/jetlinks-ui-components-1.0.4.tgz#253d07d94bc7471497aca5ec80aad6bda247e047" + integrity sha512-QqfYH8ShXou3aMvgUSJ23sf1ftmIghDm1zOZyHkwpxh0SMfPHv5k0/sMZsvfGGu+u8iyFlmjpezbReuxvwj9fA== dependencies: "@vueuse/core" "^9.12.0" ant-design-vue "^3.2.15"