【功能新增】IoT:产品新增时,productKey 由前端生成;同时增加 icon、picUrl 字段

This commit is contained in:
YunaiV
2024-12-07 19:50:23 +08:00
parent 3a94b8a9cf
commit dc2dbcbc84
2 changed files with 76 additions and 45 deletions

View File

@ -34,5 +34,10 @@ export const ProductCategoryApi = {
// 删除产品分类
deleteProductCategory: async (id: number) => {
return await request.delete({ url: `/iot/product-category/delete?id=` + id })
},
/** 获取产品分类精简列表 */
getSimpleProductCategoryList: () => {
return request.get({ url: '/iot/product-category/simple-list' })
}
}