提交 4e155841 编写于 作者: fxy060608's avatar fxy060608

fix(h5): App.vue support setup (question/144672)

上级 15a2a2b9
......@@ -7066,10 +7066,10 @@ function setupApp(comp) {
comp2.mpType = "app";
const { setup } = comp2;
comp2.setup = (props2, ctx) => {
setup && setup(props2, ctx);
return () => {
return vue.openBlock(), vue.createBlock(LayoutComponent);
};
return setup && setup(props2, ctx);
};
comp2.render = () => {
return vue.openBlock(), vue.createBlock(LayoutComponent);
};
}
});
......
......@@ -14348,10 +14348,10 @@ function setupApp(comp) {
comp2.mpType = "app";
const { setup } = comp2;
comp2.setup = (props2, ctx) => {
setup && setup(props2, ctx);
return () => {
return openBlock(), createBlock(LayoutComponent);
};
return setup && setup(props2, ctx);
};
comp2.render = () => {
return openBlock(), createBlock(LayoutComponent);
};
}
});
......
......@@ -188,10 +188,10 @@ export function setupApp(comp: any) {
comp.mpType = 'app'
const { setup } = comp
comp.setup = (props, ctx) => {
setup && setup(props, ctx)
return () => {
return openBlock(), createBlock(LayoutComponent)
}
return setup && setup(props, ctx)
}
comp.render = () => {
return openBlock(), createBlock(LayoutComponent)
}
},
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册