mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 04:08:44 +08:00 
			
		
		
		
	1. 字典点击表格红色报错修改 2.keepalive缓存toCamelCase设置中去掉‘-’,保留驼峰明名
This commit is contained in:
		@@ -212,9 +212,11 @@ const addToChildren = (
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
 | 
			
		||||
  str = (str || '').toLowerCase().replace(/-(.)/g, function (group1: string) {
 | 
			
		||||
    return group1.toUpperCase()
 | 
			
		||||
  })
 | 
			
		||||
  str = (str || '')
 | 
			
		||||
    .replace(/-(.)/g, function (group1: string) {
 | 
			
		||||
      return group1.toUpperCase()
 | 
			
		||||
    })
 | 
			
		||||
    .replaceAll('-', '')
 | 
			
		||||
 | 
			
		||||
  if (upperCaseFirst && str) {
 | 
			
		||||
    str = str.charAt(0).toUpperCase() + str.slice(1)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user