From 2346d848d0f71042a387324269c8a31c7b14cec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 6 Jan 2022 13:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=88=92=E7=BA=BF=E8=BD=AC=E9=A9=BC?= =?UTF-8?q?=E5=B3=B0=E5=BA=94=E8=AF=A5=E6=98=AF=5F=E8=80=8C=E4=B8=8D?= =?UTF-8?q?=E6=98=AF-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZR.Vue/src/utils/index.js b/ZR.Vue/src/utils/index.js index 918580f..4e65504 100644 --- a/ZR.Vue/src/utils/index.js +++ b/ZR.Vue/src/utils/index.js @@ -381,7 +381,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) {