前端:修复管理员无分页的问题

This commit is contained in:
YunaiV
2019-03-19 03:39:17 +08:00
parent e2619ce5d4
commit 76818dab18
8 changed files with 55 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
// 校验必须是英文或者数字
export function checkTypeWithEnglishAndNumbers (rule, value, callback, text) {
let char = /^[a-zA-Z0-9]+$/
if (char.test(value)) {
callback()
} else {
callback(text)
}
}