1. 字典点击表格红色报错修改 2.keepalive缓存toCamelCase设置中去掉‘-’,保留驼峰明名
This commit is contained in:
parent
c9cebcde41
commit
9c38c33012
@ -212,9 +212,11 @@ const addToChildren = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
|
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
|
||||||
str = (str || '').toLowerCase().replace(/-(.)/g, function (group1: string) {
|
str = (str || '')
|
||||||
|
.replace(/-(.)/g, function (group1: string) {
|
||||||
return group1.toUpperCase()
|
return group1.toUpperCase()
|
||||||
})
|
})
|
||||||
|
.replaceAll('-', '')
|
||||||
|
|
||||||
if (upperCaseFirst && str) {
|
if (upperCaseFirst && str) {
|
||||||
str = str.charAt(0).toUpperCase() + str.slice(1)
|
str = str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
|
@ -179,6 +179,7 @@ const tableTypeSelect = ref(false)
|
|||||||
const cellClickEvent: VxeTableEvents.CellClick = async ({ row }) => {
|
const cellClickEvent: VxeTableEvents.CellClick = async ({ row }) => {
|
||||||
tableTypeSelect.value = true
|
tableTypeSelect.value = true
|
||||||
queryParams.dictType = row['type']
|
queryParams.dictType = row['type']
|
||||||
|
await nextTick()
|
||||||
await dataGetList()
|
await dataGetList()
|
||||||
parentType.value = row['type']
|
parentType.value = row['type']
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user