This commit is contained in:
ronger 2021-04-21 09:55:01 +08:00
parent 6dce4282fd
commit 9bc7a5d65f

View File

@ -81,7 +81,11 @@
hasPermissions() { hasPermissions() {
let account = this.$store.state.userInfo?.nickname; let account = this.$store.state.userInfo?.nickname;
if (account) { 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; return true;
} }
} }