fix(mobile-client-plugin): avoid primary field error (#2625)

This commit is contained in:
Dunqing 2023-09-12 17:58:22 +08:00 committed by GitHub
parent 12c811eab3
commit b918ec5e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ export const ContainerDesigner = () => {
if (v) { if (v) {
if (!tabBarSchema) { if (!tabBarSchema) {
const pageSchema = findSchema(fieldSchema, 'MPage'); const pageSchema = findSchema(fieldSchema, 'MPage');
await dn.remove(pageSchema);
await dn.insertBeforeEnd({ await dn.insertBeforeEnd({
type: 'void', type: 'void',
'x-component': 'MTabBar', 'x-component': 'MTabBar',