diff --git a/pages/nft-book-store/collection/status/[collectionId]/edit.vue b/pages/nft-book-store/collection/status/[collectionId]/edit.vue index a9a79de23..f7b480959 100644 --- a/pages/nft-book-store/collection/status/[collectionId]/edit.vue +++ b/pages/nft-book-store/collection/status/[collectionId]/edit.vue @@ -64,7 +64,7 @@ - + @@ -309,11 +309,13 @@ config({ } }) -watch(price, (newPrice, oldPrice) => { +function onPriceInput (input: any) { + const newPrice = input.target.value + const oldPrice = price.value if (Number(oldPrice) !== 0 && Number(newPrice) === 0) { isAllowCustomPrice.value = true } -}) +} onMounted(async () => { try { diff --git a/pages/nft-book-store/status/[classId]/edit/[editionIndex].vue b/pages/nft-book-store/status/[classId]/edit/[editionIndex].vue index 56e41c8e8..6db191399 100644 --- a/pages/nft-book-store/status/[classId]/edit/[editionIndex].vue +++ b/pages/nft-book-store/status/[classId]/edit/[editionIndex].vue @@ -63,7 +63,7 @@ - + @@ -321,11 +321,13 @@ config({ } }) -watch(price, (newPrice, oldPrice) => { +function onPriceInput (input: any) { + const newPrice = input.target.value + const oldPrice = price.value if (Number(oldPrice) !== 0 && Number(newPrice) === 0) { isAllowCustomPrice.value = true } -}) +} watch(isAutoDeliver, (newValue) => { if (newValue) {