fix: id=0导致sqlserver的insert失败

This commit is contained in:
dhb52
2024-05-06 23:28:33 +08:00
parent 0222eef6b5
commit 0fb70607d9
14 changed files with 24 additions and 24 deletions

View File

@ -107,7 +107,7 @@ const resetForm = () => {
const getDemo02CategoryTree = async () => {
demo02CategoryTree.value = []
const data = await Demo02CategoryApi.getDemo02CategoryList()
const root: Tree = { id: 0, name: '顶级示例分类', children: [] }
const root: Tree = { id: undefined, name: '顶级示例分类', children: [] }
root.children = handleTree(data, 'id', 'parentId')
demo02CategoryTree.value.push(root)
}