Explorar el Código

校验正则改下

luolei hace 5 años
padre
commit
cba382ad6d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/Login.vue

+ 1 - 1
src/components/Login.vue

@@ -99,7 +99,7 @@ export default {
       if (type == 102 || type == 103) {
         this.value = value.replace(/[^\d]/g, "");
       } else if (type == 101 || type == 104) {
-        this.value = value.replace(/[\u4e00-\u9fa5]/g, "");
+        this.value = value.replace(/[^\w\.\/]/ig, "");
       }
     },
     defaultWaring(msg) {