Skip to content

Commit 9c38c33

Browse files
committed
1. 字典点击表格红色报错修改 2.keepalive缓存toCamelCase设置中去掉‘-’,保留驼峰明名
1 parent c9cebcd commit 9c38c33

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/utils/routerHelper.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,11 @@ const addToChildren = (
212212
}
213213
}
214214
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
215-
str = (str || '').toLowerCase().replace(/-(.)/g, function (group1: string) {
216-
return group1.toUpperCase()
217-
})
215+
str = (str || '')
216+
.replace(/-(.)/g, function (group1: string) {
217+
return group1.toUpperCase()
218+
})
219+
.replaceAll('-', '')
218220

219221
if (upperCaseFirst && str) {
220222
str = str.charAt(0).toUpperCase() + str.slice(1)

src/views/bpm/task/todo/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { push } = useRouter() // 路由
2222
2323
const [registerTable] = useXTable({
2424
allSchemas: allSchemas,
25-
topActionSlots:false,
25+
topActionSlots: false,
2626
getListApi: TaskApi.getTodoTaskPage
2727
})
2828

src/views/system/dict/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ const tableTypeSelect = ref(false)
179179
const cellClickEvent: VxeTableEvents.CellClick = async ({ row }) => {
180180
tableTypeSelect.value = true
181181
queryParams.dictType = row['type']
182+
await nextTick()
182183
await dataGetList()
183184
parentType.value = row['type']
184185
}

0 commit comments

Comments
 (0)