|
|
@ -199,7 +199,8 @@ export default { |
|
|
this.linkSocket(); |
|
|
this.linkSocket(); |
|
|
} |
|
|
} |
|
|
bus.$on('collapse', msg => { |
|
|
bus.$on('collapse', msg => { |
|
|
this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); |
|
|
// this.newPriceObj.price =this.symbol=='BTC'? (msg.close).toFixed(1):(msg.close).toFixed(3); |
|
|
|
|
|
this.newPriceObj.price = msg.close; |
|
|
this.$emit("input", this.newPriceObj); |
|
|
this.$emit("input", this.newPriceObj); |
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----') |
|
|
}); |
|
|
}); |
|
|
|