From ea7ce1636e2f2c673e7de7f8cf4afea7ff982f8c Mon Sep 17 00:00:00 2001 From: RyanRan <1410277647@qq.com> Date: Tue, 8 Oct 2024 10:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=98=A8=E5=A4=A9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/utils/regular.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manager/src/utils/regular.js b/manager/src/utils/regular.js index 2668a233..8a13fb4d 100644 --- a/manager/src/utils/regular.js +++ b/manager/src/utils/regular.js @@ -93,3 +93,12 @@ export const REQUIRED = { required: true, message:'请填写参数' } + +export const WHITE_SPACE = { + whitespace: true, + message: "不可为纯空格", +} +export const VARCHAR60 = { + pattern: /^.{1,60}$/, + message: '长度应该限制在1-60个字符' +}