Skip to content
Snippets Groups Projects
Commit da0eca4a authored by 韩 博侨's avatar 韩 博侨
Browse files

test2

parent 2373adc4
No related branches found
No related tags found
No related merge requests found
Pipeline #82813 failed
......@@ -2,3 +2,4 @@
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
npx lint-staged
......@@ -36,6 +36,6 @@
"webpack": "^5.88.1"
},
"lint-staged": {
"*.{vue,js,css,md}": "prettier --write"
"**/*": "prettier --write --ignore-unknown"
}
}
......@@ -22,12 +22,14 @@ const rules = reactive<FormRules>({
{ required: true, message: "此字段为必填项", trigger: "change" },
{
min: 4,
max: 16,
message: "用户名长度不符合要求(4-16)",
trigger: "change",
max: 16,
message: "用户名长度不符合要求(4-16)",
trigger: "change",
},
{
pattern: /^[a-z\d-_]*$/,message: "用户名只能包含小写字母,数字,下划线和连字符",trigger: "change",
pattern: /^[a-z\d-_]*$/,
message: "用户名只能包含小写字母,数字,下划线和连字符",
trigger: "change",
},
],
password: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment