mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
ff772fc5cf
@ -31,12 +31,7 @@ export const useFieldModeOptions = (props?) => {
|
||||
if (!collectionField || !collectionField?.interface) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
!['o2o', 'oho', 'obo', 'o2m', 'linkTo', 'm2o', 'm2m', 'updatedBy', 'createdBy', 'mbm', 'attachmentURL'].includes(
|
||||
collectionField.interface,
|
||||
)
|
||||
)
|
||||
return;
|
||||
if (!['hasOne', 'hasMany', 'belongsTo', 'belongsToMany', 'belongsToArray'].includes(collectionField.type)) return;
|
||||
const collection = getCollection(collectionField.target);
|
||||
if (collection?.template === 'file') {
|
||||
return isReadPretty
|
||||
|
Loading…
x
Reference in New Issue
Block a user