Skip to content

Commit aff290a

Browse files
author
zuofenghua
committed
fix: arrayLimit bug
1 parent f7f569e commit aff290a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ahooks-vue",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "ahooks-vue",
55
"types": "dist/src/index.d.ts",
66
"repository": "https://github.com/dewfall123/ahooks-vue.git",
@@ -69,7 +69,7 @@
6969
"screenfull": "^5.1.0",
7070
"ts-jest": "^25.2.1",
7171
"typescript": "^4.1.5",
72-
"vitepress-for-component": "^0.14.8",
72+
"vitepress-for-component": "^0.15.1",
7373
"vue": "^3.0.1",
7474
"whatwg-fetch": "^3.5.0"
7575
},

src/useUrlState/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function encodeParams(value: UrlState) {
1717
function decodeParams(valueStr: string) {
1818
// return JSON.parse(decodeURIComponent(atob(valueStr)));
1919
return qs.parse(valueStr, {
20+
// fix: 数组长度限制问题
21+
arrayLimit: 10000,
2022
decoder(str, decoder, charset) {
2123
const strWithoutPlus = str.replace(/\+/g, ' ');
2224
if (charset === 'iso-8859-1') {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7654,10 +7654,10 @@ vite@^2.4.1:
76547654
optionalDependencies:
76557655
fsevents "~2.3.2"
76567656

7657-
vitepress-for-component@^0.14.8:
7658-
version "0.14.8"
7659-
resolved "https://registry.yarnpkg.com/vitepress-for-component/-/vitepress-for-component-0.14.8.tgz#b3ab5f089062c76bde31d8e7fa35485376e22019"
7660-
integrity sha512-DxtB4tTg9Ck7ZaDSOzEG/tIbk0ymfDB86/F5Ne8SqR3FxNE2nF4gcIVFs0nbG0HmiWWZBP+mR/Ek4GYAOyK0mQ==
7657+
vitepress-for-component@^0.15.1:
7658+
version "0.15.1"
7659+
resolved "https://registry.yarnpkg.com/vitepress-for-component/-/vitepress-for-component-0.15.1.tgz#0f074a85bc4d9c68fb7020db989f6d4108396987"
7660+
integrity sha512-eD4Ij9DZZ7i6v6efapXeuyw4oNNh5qh2U2eel5rCY2fgOEU1lGgCANuVwD7Tb027AKw4Wyrn+BMEi1jJDWySPg==
76617661
dependencies:
76627662
"@docsearch/css" "^1.0.0-alpha.28"
76637663
"@docsearch/js" "^1.0.0-alpha.28"

0 commit comments

Comments
 (0)