Commit 1bebd5ef8ee6a64508be75c21098a35c08eb1cd4
1 parent
8e0415a8
v3.8.0 升级js-cookie到最新版本3.0.1
Showing
2 changed files
with
2 additions
and
2 deletions
yudao-ui-admin/package.json
| @@ -47,7 +47,7 @@ | @@ -47,7 +47,7 @@ | ||
| 47 | "fuse.js": "6.4.3", | 47 | "fuse.js": "6.4.3", |
| 48 | "highlight.js": "9.18.5", | 48 | "highlight.js": "9.18.5", |
| 49 | "js-beautify": "1.13.0", | 49 | "js-beautify": "1.13.0", |
| 50 | - "js-cookie": "2.2.1", | 50 | + "js-cookie": "3.0.1", |
| 51 | "jsencrypt": "3.0.0-rc.1", | 51 | "jsencrypt": "3.0.0-rc.1", |
| 52 | "nprogress": "0.2.0", | 52 | "nprogress": "0.2.0", |
| 53 | "quill": "1.3.7", | 53 | "quill": "1.3.7", |
yudao-ui-admin/src/utils/index.js
| @@ -420,7 +420,7 @@ export function titleCase(str) { | @@ -420,7 +420,7 @@ export function titleCase(str) { | ||
| 420 | 420 | ||
| 421 | // 下划转驼峰 | 421 | // 下划转驼峰 |
| 422 | export function camelCase(str) { | 422 | export function camelCase(str) { |
| 423 | - return str.replace(/-[a-z]/g, str1 => str1.substr(-1).toUpperCase()) | 423 | + return str.replace(/_[a-z]/g, str1 => str1.substr(-1).toUpperCase()) |
| 424 | } | 424 | } |
| 425 | 425 | ||
| 426 | export function isNumberStr(str) { | 426 | export function isNumberStr(str) { |