diff --git a/src/main/java/io/linfeng/modules/app/controller/AppCategoryController.java b/src/main/java/io/linfeng/modules/app/controller/AppCategoryController.java index a900b8b..26954ad 100644 --- a/src/main/java/io/linfeng/modules/app/controller/AppCategoryController.java +++ b/src/main/java/io/linfeng/modules/app/controller/AppCategoryController.java @@ -18,7 +18,7 @@ import java.util.List; */ @Api(tags = "用户端——分类") @RestController -@RequestMapping("app/topic") +@RequestMapping("app/category") public class AppCategoryController { diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue index 3694c2e..043efab 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue @@ -20,7 +20,7 @@ }, methods: { getClassList() { - this.$H.get('topic/classList').then(res => { + this.$H.get('category/classList').then(res => { this.classList = res.result }) }, diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue index f30b8a4..a0af107 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue @@ -58,10 +58,10 @@ pageCurrent: 0, current: 0, pageTab: [{ - name: '创作广场' + name: '广场' }, { - name: '发帖达人' + name: '达人' } ], classList: [{ @@ -154,7 +154,7 @@ this.getPostList() }, getClassList() { - this.$H.get('topic/classList').then(res => { + this.$H.get('category/classList').then(res => { this.classList = this.classList.concat(res.result) }) },