diff --git a/components/my-components/edit-discount.vue b/components/my-components/edit-discount.vue index dfabe73..688b08e 100644 --- a/components/my-components/edit-discount.vue +++ b/components/my-components/edit-discount.vue @@ -72,7 +72,7 @@ } }) function currentPriceInput(newval){ - form.discount=(newval*100/form.price).toFixed() + form.discount=(newval*100/form.price) } function discountInput(newval){ form.currentPrice=(form.price*newval/100).toFixed(2)