From b95e9a2b22714bb8a975996101870a77e5240cb0 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 22 Nov 2022 14:12:16 +0800 Subject: [PATCH] perf: adding the necessary validation to the forms --- .../components/AttachmentGroupEditingModal.vue | 2 +- .../components/AttachmentPolicyEditingModal.vue | 2 +- .../comments/components/ReplyCreationModal.vue | 2 +- .../pages/components/SinglePageSettingModal.vue | 6 ++++-- .../categories/components/CategoryEditingModal.vue | 7 ++++--- .../contents/posts/components/PostSettingModal.vue | 6 ++++-- .../contents/posts/tags/components/TagEditingModal.vue | 6 ++++-- .../interface/menus/components/MenuEditingModal.vue | 2 +- .../menus/components/MenuItemEditingModal.vue | 4 ++-- .../system/roles/components/RoleEditingModal.vue | 2 +- .../system/users/components/UserEditingModal.vue | 10 ++++++---- .../users/components/UserPasswordChangeModal.vue | 4 ++-- src/views/system/Setup.vue | 2 +- 13 files changed, 32 insertions(+), 23 deletions(-) diff --git a/src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue b/src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue index 98f29687b..758ad6762 100644 --- a/src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue +++ b/src/modules/contents/attachments/components/AttachmentGroupEditingModal.vue @@ -127,7 +127,7 @@ watch( label="名称" type="text" name="displayName" - validation="required" + validation="required|length:0,50" >