|
@@ -19,7 +19,7 @@ export async function saveOrUpdate(data) {
|
|
|
|
|
|
|
|
// 根据父级id查分类树
|
|
// 根据父级id查分类树
|
|
|
export async function getTreeByPid(parentId) {
|
|
export async function getTreeByPid(parentId) {
|
|
|
- const res = await request.get(`/main/categoryLevel/getTreeByPid/${parentId}`);
|
|
|
|
|
|
|
+ const res = await request.get(`/main/getTreeByPid/${parentId}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data;
|
|
return res.data;
|
|
|
}
|
|
}
|