瀏覽代碼

错误解决

Zn 1 年之前
父節點
當前提交
65c4b67280
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      ruoyi-ui/src/utils/index.js

+ 0 - 5
ruoyi-ui/src/utils/index.js

@@ -420,8 +420,3 @@ export function toUnderline(str = '') {
 export const $ = name => document.querySelector(name)
 
 export const getContainerSize = dom => ({ width: dom.getBoundingClientRect().width, height: dom.getBoundingClientRect().height })
-
-// 驼峰转下划线
-export function toUnderline(str = '') {
-  return str.replace(/([A-Z])/g, '_$1').toLowerCase()
-}