Skip to content

Commit

Permalink
修改mobile端切换周期数据不同步
Browse files Browse the repository at this point in the history
  • Loading branch information
zcZhang123 committed Mar 28, 2019
1 parent a8e7512 commit 5afdc4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/mobileChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export default {
this.timeSharingTipData = null
this.cycle = cycle
this.toolTipIndex = null
this.chartDataObj.candleData = null
this.$emit("listenToChildEvent", cycle)
},
getCandleChart(candle) {
Expand Down
1 change: 1 addition & 0 deletions src/components/mobileKline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default {
this.currentCycle = JSON.parse(JSON.stringify(this.cycle))
},
chartDataObj() {
if (!this.chartDataObj) {return}
if (this.isRefresh) {
if (this.currentCycle !== "everyhour") {
this.kline.setMobileOption(this.klineConfig.size);
Expand Down

0 comments on commit 5afdc4d

Please sign in to comment.