You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
342 B
17 lines
342 B
import request from '@/utils/request'
|
|
|
|
// api地址
|
|
const api = {
|
|
list: 'category/list',
|
|
sonList:'goods/list'
|
|
}
|
|
|
|
|
|
// 获取分类列表
|
|
export const list = (param, option) => {
|
|
return request.get(api.list, param, option)
|
|
}
|
|
// 获取子分类
|
|
export const sonList = (param, option) => {
|
|
return request.get(api.sonList, param, option)
|
|
} |