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); } }