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

因为每个主应用都有侧边栏,一次次写太麻烦,所以将侧边栏单独分离出来作为子应用,也就是 child-sidebar,实际项目中不需要这样做,侧边栏一般放到主应用中。 #10

Open
keepClamGO opened this issue Jul 27, 2022 · 7 comments

Comments

@keepClamGO
Copy link

侧边栏如果放在主应用中,进入基座无法和子应用通信呀 求解答
image
image

@keepClamGO
Copy link
Author

image

@bailicangdu
Copy link
Member

子应用还没渲染吧

@bailicangdu
Copy link
Member

首先检查appname是不是正确的,然后检查microApp.setData发送的数据子应用有没有接受到

@keepClamGO
Copy link
Author

子应用还没渲染吧

image

@keepClamGO
Copy link
Author

子应用还没渲染吧

你好 你先看一下我这个结构对吗 nav是头部菜单 我在基座应用的app.vue引入的 然后调用 setData跳转, 当我打开首页时候 是跳转不过去的, 但是当我在左边菜单进来目标子应用的首页之后, 顶部菜单这会就生效了。

@bailicangdu
Copy link
Member

先渲染子应用才能使用setData控制跳转

@keepClamGO
Copy link
Author

先渲染子应用才能使用setData控制跳转

谢谢 解决了 还是因为我 appname 和 path写的不对 没匹配到

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

No branches or pull requests

2 participants