Skip to content

Commit

Permalink
删除冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
cjzhang1230 committed Feb 15, 2019
1 parent a411a4c commit e5687a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/components/mobileChart.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<template>

<template>
<div>
<!-- <span @click = "changeChart" >分时</span> -->
<!-- <TimeSharing ref="timeSharing" :kline-data-obj = "klineDataObj" :kline-config = "klineConfig"></TimeSharing> -->
Expand All @@ -20,8 +19,7 @@ export default {
},
data() {
return {
showChart: "candle",
fullscreen: false
showChart: "candle"
};
},
props: {
Expand All @@ -45,9 +43,6 @@ export default {
changeCycle(cycle) {
this.$emit("listenToChildEvent", cycle)
}
// changeChart() {
// this.$emit("listenToChildEvent", "everyhour");
// }
}
};
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/components/mobileKline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
this.kline.setTimeDivisionsOption(this.klineDataObj.klineSize)
}
}
if (this.klineDataObj.cycle !== "everyhour" && mobileKlineData.values !== null && mobileKlineData.volumes !== null && mobileKlineData.categoryData !== null) {
if (this.klineDataObj.cycle !== "everyhour" && mobileKlineData.values !== null && mobileKlineData.volumes !== null && mobileKlineData.categoryData !== null) {
this.toolTipData = this.kline.updateMobileOption(mobileKlineData);
}
if (this.klineDataObj.cycle === "everyhour") {
Expand Down

0 comments on commit e5687a3

Please sign in to comment.