Skip to content

Commit 21daaf4

Browse files
committed
修复新增时表单不为空问题
1 parent 0cd348e commit 21daaf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tang-generator/src/main/resources/vm/vue/index.vue.vm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ const handleList = async () => {
324324

325325
// 添加${classComment}信息
326326
const handleAdd = () => {
327+
state.${className}Form = {} as ${ClassName}Form
328+
327329
state.${className}Dialog = {
328330
title: '新增${classComment}信息',
329331
type: 'add',

0 commit comments

Comments
 (0)