From 47d60be55fc0d8bd1c132733e96441691b8f96d9 Mon Sep 17 00:00:00 2001 From: ronger Date: Mon, 3 Jan 2022 19:11:23 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=87=E7=AB=A0=E4=BC=98=E9=80=89?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/article/_article_id.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/article/_article_id.vue b/pages/article/_article_id.vue index 1d8350c..a968978 100644 --- a/pages/article/_article_id.vue +++ b/pages/article/_article_id.vue @@ -195,7 +195,7 @@ export default { return true; } } - return this.$store.getters.hasPermissions('blog_admin'); + return false; }, isAdmin() { return this.$store.getters.hasPermissions('blog_admin'); @@ -329,7 +329,7 @@ export default { }, setPreference() { let _ts = this; - _ts.$axios.$patch("/api/article/update-perfect", { + _ts.$axios.$patch("/api/admin/article/update-perfect", { idArticle: _ts.article.idArticle, articlePerfect: '1', }).then(function (res) { @@ -345,7 +345,7 @@ export default { }, cancelPreference() { let _ts = this; - _ts.$axios.$patch("/api/article/update-perfect", { + _ts.$axios.$patch("/api/admin/article/update-perfect", { idArticle: _ts.article.idArticle, articlePerfect: '0', }).then(function (res) {