Open
Description
Clear and concise description of the problem
每次点击都会更新参数,app.show 是否可以支持传参。
let app;
const initSubApp = async (id) => {
app = await Garfish.loadApp('app2', {
entry: 'http://localhost:3001',
basename: '/test',
domGetter: '#container',
props: {
id
},
});
app.mount();
}
const handleClick = (id) => {
if (!app) {
initSubApp(id);
return
}
app.show(id);
};
Suggested solution
app.show 支持传参
Alternative
No response
Additional context
No response
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels