Skip to content

Commit

Permalink
fix(pc): 发布动态时不会更新到最新动态的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Nov 15, 2018
1 parent edbd9a6 commit 479ccf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/zhiyicx-plus-pc/resources/assets/web/js/module.weibo.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ weibo.doPostFeed = function(type) {
weibo.afterPostFeed = function(feed_id) {
axios.get('/feeds', {params: {feed_id:feed_id, isAjax:true} })
.then(function (response) {
if ($('#feeds_list').find('.no_data_div').length > 0) {
$('#feeds_list').find('.no_data_div').remove();
if ($('#content_list').find('.no_data_div').length > 0) {
$('#content_list').find('.no_data_div').remove();
}
$(response.data.data).hide().prependTo('#feeds_list').fadeIn('slow');
$(response.data.data).hide().prependTo('#content_list').fadeIn('slow');
$("img.lazy").lazyload({effect: "fadeIn"});
})
.catch(function (error) {
Expand Down Expand Up @@ -438,8 +438,8 @@ $(function() {
// 微博分类tab
$('.show_tab a').on('click', function() {
var type = $(this).data('type');
$('#feeds_list').html('');
weibo.init({ container: '#feeds_list', type: type });
$('#content_list').html('');
weibo.init({ container: '#content_list', type: type });
$('.show_tab a').removeClass('dy_cen_333');
$(this).addClass('dy_cen_333');
});
Expand Down

0 comments on commit 479ccf7

Please sign in to comment.