fix(plugin-file-manager): fix storage configuration error (#5378)

This commit is contained in:
Junyi 2024-10-09 15:07:00 +08:00 committed by GitHub
parent 26b99964fd
commit 31325556a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ export const CreateStorage = () => {
[uid()]: {
type: 'void',
'x-component': 'Action.Drawer',
'x-decorator': 'FormV2',
'x-decorator': 'Form',
'x-decorator-props': {
initialValue: {
type: storageType.name,
@ -105,8 +105,8 @@ export const EditStorage = () => {
onClick={() => {
setVisible(true);
const storageType = plugin.storageTypes.get(record.type);
if (storageType.properties['default']) {
storageType.properties['default']['x-reactions'] = (field) => {
if (storageType.fieldset['default']) {
storageType.fieldset['default']['x-reactions'] = (field) => {
if (field.initialValue) {
field.disabled = true;
} else {
@ -120,7 +120,7 @@ export const EditStorage = () => {
[uid()]: {
type: 'void',
'x-component': 'Action.Drawer',
'x-decorator': 'FormV2',
'x-decorator': 'Form',
'x-decorator-props': {
initialValue: {
...record,