fix: correct parentSchemaUid reference in routesTableSchema (#6362)

This commit is contained in:
Zeke Zhang 2025-03-07 11:56:31 +08:00 committed by GitHub
parent 0bce6fe1dc
commit 57af4c1787
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -7,8 +7,7 @@
* For more information, please refer to: https://www.nocobase.com/agreement. * For more information, please refer to: https://www.nocobase.com/agreement.
*/ */
import { Plugin, useACLRoleContext } from '@nocobase/client'; import { Plugin } from '@nocobase/client';
import ignore from 'ignore';
import { DesktopRoutesManager } from './DesktopRoutesManager'; import { DesktopRoutesManager } from './DesktopRoutesManager';
import { lang as t } from './locale'; import { lang as t } from './locale';
import { MobileRoutesManager } from './MobileRoutesManager'; import { MobileRoutesManager } from './MobileRoutesManager';

View File

@ -861,7 +861,7 @@ export const createRoutesTableSchema = (collectionName: string, basename: string
if (form.values.type === NocoBaseDesktopRouteType.tabs) { if (form.values.type === NocoBaseDesktopRouteType.tabs) {
const { tabSchemaUid, tabSchemaName } = await createTabRouteSchema({ const { tabSchemaUid, tabSchemaName } = await createTabRouteSchema({
...form.values, ...form.values,
parentSchemaUid: recordData.pageSchemaUid, parentSchemaUid: recordData.schemaUid,
}); });
await createRoute({ await createRoute({