Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyzhang1992 committed Mar 13, 2019
1 parent 0f70033 commit 475ec30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/sentence/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ Page({
this.setData({
th_index: theme_index,
types: that.data._types[theme_index>0 ? theme_index-1 : 0].types,
ty_index: 0
ty_index: 0,
poems: []
});
wx.setNavigationBarTitle({
title: that.data.themes[theme_index]
Expand All @@ -133,7 +134,8 @@ Page({
let that = this;
let type_index= e.currentTarget.dataset.id ? e.currentTarget.dataset.id: 0;
this.setData({
ty_index: type_index
ty_index: type_index,
poems: []
});
wx.setNavigationBarTitle({
title: that.data.themes[that.data.th_index] + ' | ' + that.data.types[type_index]
Expand Down

0 comments on commit 475ec30

Please sign in to comment.