Skip to content

Commit

Permalink
修改PSY指标精度
Browse files Browse the repository at this point in the history
  • Loading branch information
zcZhang123 committed Jun 5, 2019
1 parent 889f2d1 commit b868fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PSYChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</template>
<script>
import IndicatorChart from "../js/IndicatorChart";
import { getLanguage } from "../js/utils";
import { getLanguage, formatDecimal } from "../js/utils";
export default {
name: "PSY",
data() {
Expand Down Expand Up @@ -130,7 +130,7 @@ export default {
}
if (this.PSYData) {
this.toolTipData = {
PSY: parseFloat(this.PSYData[index]).toFixed(7)
PSY: formatDecimal(this.PSYData[index], 2, true)
};
}
}
Expand Down

0 comments on commit b868fb0

Please sign in to comment.