v3.8.0 升级js-cookie到最新版本3.0.1

This commit is contained in:
YunaiV 2022-02-17 15:26:22 +08:00
parent 8e0415a8fe
commit 1bebd5ef8e
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@
"fuse.js": "6.4.3",
"highlight.js": "9.18.5",
"js-beautify": "1.13.0",
"js-cookie": "2.2.1",
"js-cookie": "3.0.1",
"jsencrypt": "3.0.0-rc.1",
"nprogress": "0.2.0",
"quill": "1.3.7",

View File

@ -420,7 +420,7 @@ export function titleCase(str) {
// 下划转驼峰
export function camelCase(str) {
return str.replace(/-[a-z]/g, str1 => str1.substr(-1).toUpperCase())
return str.replace(/_[a-z]/g, str1 => str1.substr(-1).toUpperCase())
}
export function isNumberStr(str) {