|
@@ -66,7 +66,7 @@ export default {
|
|
|
mounted(){
|
|
mounted(){
|
|
|
let info = this.info
|
|
let info = this.info
|
|
|
this.showStock = ''
|
|
this.showStock = ''
|
|
|
- if(Number(info.stock)>1){
|
|
|
|
|
|
|
+ if(Number(info.stock)>0){
|
|
|
this.showStock += Math.trunc(info.stock)+info.bigUnit
|
|
this.showStock += Math.trunc(info.stock)+info.bigUnit
|
|
|
}
|
|
}
|
|
|
let decimal = Number(info.stock) - Math.trunc(info.stock)
|
|
let decimal = Number(info.stock) - Math.trunc(info.stock)
|