在onUser页面上授予权限时,action的统一

This commit is contained in:
Xu Chang 2023-01-18 17:12:31 +08:00
parent 28f65840b8
commit be2fd0af0e
3 changed files with 5 additions and 4 deletions

View File

@ -93,5 +93,6 @@ export declare type EntityDef = {
Remove: RemoveOperation;
CreateSingle: CreateSingleOperation;
CreateMulti: CreateMultipleOperation;
Relation: Relation;
};
export {};

View File

@ -17,7 +17,7 @@ function Render(props) {
var strValue = e.target.value;
update({
name: strValue,
});
}, 'grant');
}, value: name, placeholder: t('placeholder.name') }) }) })), !!oakId ? (0, jsx_runtime_1.jsx)(antd_1.Form.Item, tslib_1.__assign({ label: t('user:attr.nickname'), name: "nickname", rules: [
{
required: true,
@ -30,7 +30,7 @@ function Render(props) {
var strValue = e.target.value;
update({
password: strValue,
});
}, 'grant');
}, placeholder: t('placeholder.password') }) }) })), (0, jsx_runtime_1.jsx)(antd_1.Form.Item, tslib_1.__assign({ label: t('auth'), rules: [
{
required: true,

View File

@ -43,7 +43,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
const strValue = e.target.value;
update({
name: strValue,
});
}, 'grant');
}}
value={name}
placeholder={t('placeholder.name')}
@ -82,7 +82,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
const strValue = e.target.value;
update({
password: strValue,
});
}, 'grant');
}}
placeholder={t('placeholder.password')}
/>