From 293cf7e69c1a37a3f6d90a8abfb4e0070e90c2eb Mon Sep 17 00:00:00 2001 From: x ronger Date: Sun, 27 Sep 2020 22:34:26 +0800 Subject: [PATCH] =?UTF-8?q?:children=5Fcrossing:=20=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=B1=95=E7=A4=BA=E6=96=B9=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/article/_article_id.vue | 49 ++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/pages/article/_article_id.vue b/pages/article/_article_id.vue index 39af94f..aa7c761 100644 --- a/pages/article/_article_id.vue +++ b/pages/article/_article_id.vue @@ -19,28 +19,25 @@ - - - - 编辑 - 编辑标签 - 分享 - - - - {{ article.articleViewCount }} - - {{ tag.tagTitle }} - + + + # {{ tag.tagTitle }} + + + + 编辑文章 + 编辑标签 + 分享 + @@ -196,12 +193,16 @@ } else if (item === 'editTag') { _ts.$set(_ts, 'dialogVisible', true); } else { - _ts.$axios.$get('/api/article/' + _ts.article.idArticle + '/share').then(function (res) { - if (res) { - _ts.$set(_ts, 'shareData', res); - _ts.$set(_ts, 'isShare', true); - } - }); + if (_ts.isShare) { + _ts.$set(_ts, 'isShare', false); + } else { + _ts.$axios.$get('/api/article/' + _ts.article.idArticle + '/share').then(function (res) { + if (res) { + _ts.$set(_ts, 'shareData', res); + _ts.$set(_ts, 'isShare', true); + } + }); + } } }, gotoLogin() {