【修复】全局:id=0导致sqlserver的insert失败

This commit is contained in:
YunaiV
2024-05-07 22:18:43 +08:00
parent 3976e49e35
commit 760bab7d29
6 changed files with 11 additions and 11 deletions

View File

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