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
yudao-ui-admin/src/utils/index.js
| ... | ... | @@ -420,7 +420,7 @@ export function titleCase(str) { |
| 420 | 420 | |
| 421 | 421 | // 下划转驼峰 |
| 422 | 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 | 426 | export function isNumberStr(str) { | ... | ... |