login
This commit is contained in:
parent
46d05fc7aa
commit
4af1a40d96
|
@ -55,50 +55,40 @@ const INITIAL_DATA = {
|
|||
password: "",
|
||||
};
|
||||
const from = ref();
|
||||
const from = ref();
|
||||
const formData = reactive({
|
||||
...INITIAL_DATA,
|
||||
});
|
||||
|
||||
const rules = reactive({
|
||||
account: [
|
||||
account: [
|
||||
{
|
||||
required: true,
|
||||
message: "必须填写",
|
||||
message: "必须填写",
|
||||
},
|
||||
{
|
||||
min: 10,
|
||||
message: "输入不正确",
|
||||
message: "输入不正确",
|
||||
},
|
||||
{
|
||||
max: 10,
|
||||
message: "输入不正确",
|
||||
message: "输入不正确",
|
||||
},
|
||||
],
|
||||
password: [
|
||||
password: [
|
||||
{
|
||||
required: true,
|
||||
message: "密码必填",
|
||||
message: "密码必填",
|
||||
},
|
||||
{
|
||||
len: 8,
|
||||
message: "请输入 8 位密码",
|
||||
message: "请输入 8 位密码",
|
||||
},
|
||||
{
|
||||
pattern: /[A-Z]+/,
|
||||
message: "密码必须包含大写字母",
|
||||
message: "密码必须包含大写字母",
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
const onReset = () => {
|
||||
MessagePlugin.success("重置成功");
|
||||
|
@ -116,10 +106,6 @@ const onSubmit = () => {
|
|||
});
|
||||
};
|
||||
|
||||
const Login = async () => {
|
||||
await reqLogin();
|
||||
};
|
||||
|
||||
const Login = async () => {
|
||||
await reqLogin();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user