|
|
@@ -13,7 +13,7 @@ const coinTop50 = {
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
- this.requestData = _.throttle(this.requestData,500)
|
|
|
+ this.requestData = _.debounce(this.requestData,500)
|
|
|
},
|
|
|
mounted() {
|
|
|
this.requestData(this.date)
|
|
|
@@ -50,7 +50,7 @@ const coinTop50 = {
|
|
|
},
|
|
|
displayRoundedPrice(price){
|
|
|
var precision = -Math.floor( Math.log10(price) + 1);
|
|
|
- return Math.round(item.prices.toFixed(precision)).toLocaleString();
|
|
|
+ return price.toLocaleString();
|
|
|
}
|
|
|
}
|
|
|
}
|