diff --git a/src/api/home.js b/src/api/home.js index ffe17ba..dca9aa1 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -6,3 +6,10 @@ export function getBanner() { method: 'get' }) } + +export function getCategory() { + return request({ + url: '/home/category', + method: 'get' + }) +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue index cc5f214..2672a52 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,7 +1,7 @@