From d3b4a7359573d755bed67c05c688cf1d2b480c89 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 29 Mar 2021 11:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=99=E8=A8=80=E6=9D=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/messageBoard/index.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/messageBoard/index.vue b/src/views/messageBoard/index.vue index c8a686584..06bba0731 100644 --- a/src/views/messageBoard/index.vue +++ b/src/views/messageBoard/index.vue @@ -144,12 +144,10 @@ export default { }; }, mounted() { - if (this.project) { - getPostByProjectCode(this.projectCode).then(resp => { - this.postId = resp.data.id; - }); - this.handleCurrentChange(); - } + getPostByProjectCode(this.projectCode).then(resp => { + this.postId = resp.data.id; + }); + this.handleCurrentChange(); }, methods: { commitComment() {