增加排序功能,修改错别字 dashbord->dashboard 需更新数据库中base_menu表中 所有的dashbord改为dashboard

This commit is contained in:
QM303176530
2020-04-07 21:54:02 +08:00
parent 38ccce5182
commit 604d6dcd42
7 changed files with 37 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
export const toUpperCase = (str) => {
if (str[0]) {
return str.replace(str[0], str[0].toUpperCase())
} else {
return ""
}
}
// 驼峰转换下划线
export const toSQLLine = (str) => {
if (str=="ID") return "ID"
return str.replace(/([A-Z])/g,"_$1").toLowerCase();
}