nieyuge 2 lat temu
rodzic
commit
0573b648ae
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/pages/nft/add.vue

+ 5 - 1
src/pages/nft/add.vue

@@ -278,7 +278,11 @@ const jumpList = () => {
 }
 
 const changePrice = debounce((e: any) => {
-    projectPrice.value = String(Math.abs(e.target.value))
+    if (e.target.value !== '') {
+        projectPrice.value = String(Math.abs(e.target.value))
+    } else {
+        projectPrice.value = ''
+    }
 }, 500)
 
 const feedback = () => {