From 96936262dc43ce1160ba433e0a14e478022b6f77 Mon Sep 17 00:00:00 2001 From: "97694732@qq.com" Date: Fri, 5 Jun 2026 14:24:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:price=E4=B9=98=E4=BB=A5100=E8=BD=AC?= =?UTF-8?q?=E4=B8=BA=E5=88=86=E5=90=8E=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index f3baee1..37a3145 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -1966,12 +1966,12 @@ export default { if (this.currentTab === 'isbn') { apiData.isbn = this.isbn || '' - apiData.price = this.price || '' + apiData.price = this.price ? String(Math.round(parseFloat(this.price) * 100)) : '' apiData.stock = String(this.stock ?? '') apiData.product_name = this.bookName || '' } else { apiData.isbn = this.noIsbnIsbn || this.noIsbnUnifyIsbn || '' - apiData.price = this.noIsbnPrice || '' + apiData.price = this.noIsbnPrice ? String(Math.round(parseFloat(this.noIsbnPrice) * 100)) : '' apiData.stock = String(this.noIsbnStock ?? '') apiData.product_name = this.noIsbnBookName || '' }