From 1c604b2a534aed6a5709c70c8eed019c77152417 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Wed, 27 Jul 2022 16:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/service/impl/PostServiceImpl.java | 1 - src/main/resources/application-dev.yml | 2 +- .../modules/admin/post-add-or-update.vue | 45 +------------------ .../src/views/modules/admin/post.vue | 15 +------ 4 files changed, 4 insertions(+), 59 deletions(-) diff --git a/src/main/java/io/linfeng/modules/admin/service/impl/PostServiceImpl.java b/src/main/java/io/linfeng/modules/admin/service/impl/PostServiceImpl.java index ed10010..ba228b5 100644 --- a/src/main/java/io/linfeng/modules/admin/service/impl/PostServiceImpl.java +++ b/src/main/java/io/linfeng/modules/admin/service/impl/PostServiceImpl.java @@ -91,7 +91,6 @@ public class PostServiceImpl extends ServiceImpl implements response.setDiscussTitle(discussEntity.getTitle()); } } - response.setTopicName(topicService.getById(response.getTopicId()).getTopicName()); response.setCollectionCount(postCollectionService.collectCount(response.getId())); response.setCommentCount(commentService.getCountByTopicId(response.getId())); response.setUserInfo(appUserService.getById(response.getUid())); diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 28e3c7b..b750e22 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -3,7 +3,7 @@ spring: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/linfengcommunity?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai + url: jdbc:mysql://localhost:3306/linfeng-community-ky?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai username: root password: root initial-size: 10 diff --git a/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post-add-or-update.vue b/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post-add-or-update.vue index a245e20..2183455 100644 --- a/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post-add-or-update.vue +++ b/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post-add-or-update.vue @@ -4,34 +4,7 @@ :close-on-click-modal="false" :visible.sync="visible"> - - - - 上架 - - 下架 - - + @@ -41,21 +14,7 @@ - + 取消 diff --git a/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post.vue b/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post.vue index 5f27ed0..7038480 100644 --- a/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post.vue +++ b/src/main/resources/static/linfeng-community-vue/src/views/modules/admin/post.vue @@ -173,20 +173,7 @@ - - - +