Browse Source

代码校验更改

master
李胜楠 1 year ago
parent
commit
dff3a3d93c
  1. 2
      src/utils/validator.ts

2
src/utils/validator.ts

@ -729,7 +729,7 @@ function trim(str) {
//校验只可输入大小写字母及数字
export function validateYS(rule, value, callback) {
if (value) {
const regs = /^[a-zA-Z0-9]+$/
const regs = /^[a-zA-Z0-9-_]+$/
if(regs.test(value)){
callback()
} else {

Loading…
Cancel
Save