fix(mobile-client-plugin): avoid primary field error (#2625)
This commit is contained in:
parent
12c811eab3
commit
b918ec5e41
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user