You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
798 B
42 lines
798 B
2 years ago
|
export default function () {
|
||
|
return {
|
||
|
title: "登录",
|
||
|
type: "object",
|
||
|
properties: {
|
||
|
username: {
|
||
|
title: "用户名",
|
||
|
type: "string",
|
||
|
rules: [
|
||
|
{
|
||
|
required: true,
|
||
|
message: "用户名不能为空",
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
password: {
|
||
|
title: "密码",
|
||
|
type: "string",
|
||
2 years ago
|
input: "password",
|
||
2 years ago
|
rules: [
|
||
|
{
|
||
|
required: true,
|
||
|
message: "密码不能为空",
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
client_id: {
|
||
|
default: "basic-web",
|
||
|
hidden: true,
|
||
|
},
|
||
|
grant_type: {
|
||
|
default: "password",
|
||
|
hidden: true,
|
||
|
},
|
||
|
scope: {
|
||
|
default: "WebAppGateway BaseService",
|
||
|
hidden: true,
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
}
|