feat: improve users options

This commit is contained in:
chenos 2020-12-19 15:50:04 +08:00
parent ddcf0f4219
commit 3054ddb13b
2 changed files with 6 additions and 6 deletions

View File

@ -12,6 +12,7 @@ export default {
name: 'username',
title: '用户名',
unique: true,
required: true,
component: {
type: 'string',
showInTable: true,
@ -24,6 +25,7 @@ export default {
type: 'string',
name: 'nickname',
title: '昵称',
required: true,
component: {
type: 'string',
showInTable: true,
@ -49,6 +51,7 @@ export default {
type: 'password',
name: 'password',
title: '密码',
required: true,
hidden: true,
component: {
type: 'password',
@ -62,9 +65,6 @@ export default {
title: 'Token',
unique: true,
hidden: true,
component: {
type: 'string',
},
},
],
actions: [

View File

@ -47,7 +47,7 @@ export default async function (options = {}) {
'users:check': check,
});
resourcer.import({
directory: path.resolve(__dirname, 'resources'),
});
// resourcer.import({
// directory: path.resolve(__dirname, 'resources'),
// });
}