Explorar el Código

更新银行卡字符串

fly hace 4 días
padre
commit
de325b41a6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/BankCard.vue

+ 1 - 1
src/views/BankCard.vue

@@ -103,7 +103,7 @@ export default {
       // Remove any non-digit characters
       const value = event.target.value.replace(/\D/g, '');
       this.banknumInput = value;
-      this.formData.banknum = Number(value) || '';
+      this.formData.banknum = value; // 始终用字符串
     },
     async getBankInfo() {
       try {