From 9bc7a5d65fb83346ed27932d83100869035c0a1a Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 21 Apr 2021 09:55:01 +0800 Subject: [PATCH] :ambulance: https://github.com/rymcu/forest/issues/40 --- pages/article/post/_article_id.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } }