...
|
...
|
@@ -4,7 +4,11 @@ import apiUrl from '../../../../config/api-domain' |
|
|
const request = require('axios');
|
|
|
|
|
|
function getBrand(shopId) {
|
|
|
return request.get(apiUrl.brand, {shopsId:shopId})
|
|
|
return request.get(apiUrl.brand, {
|
|
|
params: {
|
|
|
shopsId:shopId
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
function getCategory(shopId, brandId, level , sortId) {
|
...
|
...
|
@@ -18,7 +22,9 @@ function getCategory(shopId, brandId, level , sortId) { |
|
|
Object.assign(opts, {sortId});
|
|
|
}
|
|
|
|
|
|
return request.get(apiUrl.category, opts);
|
|
|
return request.get(apiUrl.category, {
|
|
|
params: opts
|
|
|
});
|
|
|
}
|
|
|
|
|
|
export default {
|
...
|
...
|
|