first version
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import createAxios from '@/utils/request';
|
||||
import type IProductCategory from '@/domain/iProductCategory.ts';
|
||||
|
||||
/** 分类级联树(商品表单分类下拉、对账筛选用,仅启用分类) */
|
||||
export async function getCategoryTree() {
|
||||
return createAxios<IProductCategory[]>({
|
||||
url: '/product/category/tree',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/** 完整分类树(后台树表展示) */
|
||||
export async function getCategoryTable() {
|
||||
return createAxios<IProductCategory[]>({
|
||||
url: '/product/category',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user