🐛 文章详情页关注关系显示问题修复
This commit is contained in:
parent
1eaa3edc5f
commit
475c1d8123
@ -256,7 +256,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit('setActiveMenu', 'articleDetail');
|
let _ts = this;
|
||||||
|
_ts.$store.commit('setActiveMenu', 'articleDetail');
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
const previewElement = document.getElementById("articleContent");
|
const previewElement = document.getElementById("articleContent");
|
||||||
// //const outLineElement = document.getElementById("articleToC");
|
// //const outLineElement = document.getElementById("articleToC");
|
||||||
@ -276,6 +277,17 @@
|
|||||||
//VditorPreview.outlineRender(previewElement, outLineElement);
|
//VditorPreview.outlineRender(previewElement, outLineElement);
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (_ts.user) {
|
||||||
|
_ts.$axios.$get('/api/follow/is-follow', {
|
||||||
|
params: {
|
||||||
|
followingId: _ts.article.articleAuthorId,
|
||||||
|
followingType: 0
|
||||||
|
}
|
||||||
|
}).then(function (res) {
|
||||||
|
_ts.$set(_ts, 'isFollow', res);
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user