mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-18 21:05:07 +08: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