From 46f6b06fb71cf2fc8e72339def05f27bea46b9b0 Mon Sep 17 00:00:00 2001 From: ronger Date: Mon, 1 Aug 2022 21:49:48 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=8E=A5=E5=8F=A3=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/widget/tags.vue | 9 +++------ pages/article/_article_id.vue | 8 ++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/components/widget/tags.vue b/components/widget/tags.vue index 7f8692b..f6302aa 100644 --- a/components/widget/tags.vue +++ b/components/widget/tags.vue @@ -76,14 +76,11 @@ export default { idArticle: _ts.idArticle, articleTags: _ts.articleTags.join(',') }).then(function (res) { + console.log(res) if (res) { - if (res.success) { - _ts.$emit('closeDialog'); - } else { - _ts.$message(res.message) - } + _ts.$emit('closeDialog'); } else { - _ts.$message("更新失败!") + _ts.$message(res.message) } }) } diff --git a/pages/article/_article_id.vue b/pages/article/_article_id.vue index 6e62398..5023873 100644 --- a/pages/article/_article_id.vue +++ b/pages/article/_article_id.vue @@ -69,7 +69,7 @@ - + @@ -257,7 +257,7 @@ export default { isShare: false, dialogVisible: false, isPerfect: false, - shareData: {} + shareUrl: '' } }, methods: { @@ -283,12 +283,12 @@ export default { if (_ts.user) { _ts.$axios.$get('/api/article/' + _ts.article.idArticle + '/share').then(function (res) { if (res) { - _ts.$set(_ts, 'shareData', res); + _ts.$set(_ts, 'shareUrl', res); _ts.$set(_ts, 'isShare', true); } }); } else { - _ts.$set(_ts, 'shareData', {shareUrl: _ts.article.articlePermalink}); + _ts.$set(_ts, 'shareUrl', _ts.article.articlePermalink); _ts.$set(_ts, 'isShare', true); } }