diff --git a/pages/article/post/_article_id.vue b/pages/article/post/_article_id.vue index b3b1311..6386fc4 100644 --- a/pages/article/post/_article_id.vue +++ b/pages/article/post/_article_id.vue @@ -81,7 +81,11 @@ hasPermissions() { let account = this.$store.state.userInfo?.nickname; if (account) { - if (account === this.article.articleAuthor.userNickname) { + if (this.$route.params.article_id) { + if (account === this.article.articleAuthor.userNickname) { + return true; + } + } else { return true; } }