mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-11 16:57:09 +08:00
fix: 修复 lodash 升级为 lodash-es 后遗漏的错误代码 (#2)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { isExternal } from '@/utils/validate'
|
||||
import { browse, mapTree } from 'xe-utils'
|
||||
import _ from 'lodash'
|
||||
import { upperFirst, camelCase } from 'lodash-es'
|
||||
import { Message } from '@arco-design/web-vue'
|
||||
|
||||
export function getProperty<T, K extends keyof T>(obj: T, key: K): T[K] {
|
||||
@@ -184,7 +184,7 @@ export const randomHex = () => {
|
||||
export const transformPathToName = (path: string) => {
|
||||
if (!path) return ''
|
||||
if (isExternal(path)) return ''
|
||||
return _.upperFirst(_.camelCase(path))
|
||||
return upperFirst(camelCase(path))
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user