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

主子应用根节点元素冲突 #18

Open
wen403 opened this issue Oct 11, 2023 · 3 comments
Open

主子应用根节点元素冲突 #18

wen403 opened this issue Oct 11, 2023 · 3 comments

Comments

@wen403
Copy link

wen403 commented Oct 11, 2023

主子应用都是vite+vue,因为渲染的根节点都是#app所以子应用一加载就把主应用的#app替换了导致崩溃

image

@wen403 wen403 changed the title 主子应用根目节点冲突 主子应用根节点元素冲突 Oct 11, 2023
@wen403
Copy link
Author

wen403 commented Oct 11, 2023

请问一下为什么演示环境主应用是挂在容器节点中的,但是我看代码中是挂载在#app上的呢

image
image

@lishaobos
Copy link
Owner

你好,你看错了吧,我主应用就是 app

@lishaobos
Copy link
Owner

针对你那个错误,是不是没有放 id 为 micro 的元素,所以渲染失败

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