Explorar o código

校验正则改下

luolei %!s(int64=5) %!d(string=hai) anos
pai
achega
cba382ad6d
Modificáronse 1 ficheiros con 1 adicións e 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) {