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() {