mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-13 12:20:35 +00:00
fix: id=0导致sqlserver的insert失败
This commit is contained in:
@@ -138,7 +138,7 @@ const resetForm = () => {
|
||||
const getProductCategoryTree = async () => {
|
||||
productCategoryTree.value = []
|
||||
const data = await ProductCategoryApi.getProductCategoryList()
|
||||
const root: Tree = { id: 0, name: '顶级产品分类', children: [] }
|
||||
const root: Tree = { id: undefined, name: '顶级产品分类', children: [] }
|
||||
root.children = handleTree(data, 'id', 'parentId')
|
||||
productCategoryTree.value.push(root)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user