Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主应用是ice3,微应用时ice2,主应用props传值,微应用接收不到 #6662

Open
laocai96 opened this issue Nov 22, 2023 · 0 comments
Assignees
Labels

Comments

@laocai96
Copy link

laocai96 commented Nov 22, 2023

Describe the bug

主应用是ice3,微应用时ice2,主应用props传值,微应用接收不到
主应用:

export const icestark = defineFrameworkConfig(() => {
    return {
        layout: < div > .... < /div>,
        getApps: () => ([{
            path: '/testi',
            title: '商家',
            url: [
                ...
            ],
            props: {
                name: '1223',
            },
            sandbox: true,
        }, ]),
        ...
    }
});

微应用:随便一个页面

export default function Manage(props) {
    console.log(10, props.frameworkProps); // 是 undefined, 主应用的值没有传递过来
}

Expected behavior

微应用应该接收对应的值

Actual behavior

没有值

Version of ice.js

3.0.0

Content of build.json or ice.config.mts

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants