Explorar o código

更新银行卡字符串

fly hai 4 días
pai
achega
de325b41a6
Modificáronse 1 ficheiros con 1 adicións e 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 {