From b918ec5e41bdd02ae948644125d218c73db0a707 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Tue, 12 Sep 2023 17:58:22 +0800 Subject: [PATCH] fix(mobile-client-plugin): avoid primary field error (#2625) --- .../core/schema/components/container/Container.Designer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/mobile-client/src/client/core/schema/components/container/Container.Designer.tsx b/packages/plugins/mobile-client/src/client/core/schema/components/container/Container.Designer.tsx index ceffb08ce..9f130f5bf 100644 --- a/packages/plugins/mobile-client/src/client/core/schema/components/container/Container.Designer.tsx +++ b/packages/plugins/mobile-client/src/client/core/schema/components/container/Container.Designer.tsx @@ -50,6 +50,7 @@ export const ContainerDesigner = () => { if (v) { if (!tabBarSchema) { const pageSchema = findSchema(fieldSchema, 'MPage'); + await dn.remove(pageSchema); await dn.insertBeforeEnd({ type: 'void', 'x-component': 'MTabBar',