Skip to content

Commit

Permalink
fix 表单get${ClassName}Data
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx authored Jul 14, 2024
1 parent eae7900 commit d59d398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions single/表单.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const openDialog = (id: string) => {
// 获取${className}信息
if (id) {
form.${pk.attrName} = id
get${className}Data(id)
get${ClassName}Data(id)
}
};
Expand All @@ -197,7 +197,7 @@ const onSubmit = async () => {
// 初始化表单数据
const get${className}Data = (id: string) => {
const get${ClassName}Data = (id: string) => {
// 获取数据
loading.value = true
getObj({${pk.attrName}: id}).then((res: any) => {
Expand Down

0 comments on commit d59d398

Please sign in to comment.