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

单 Vue 应用不会渲染 #43

Closed
jawn-ha opened this issue Aug 10, 2022 · 3 comments
Closed

单 Vue 应用不会渲染 #43

jawn-ha opened this issue Aug 10, 2022 · 3 comments

Comments

@jawn-ha
Copy link

jawn-ha commented Aug 10, 2022

目前子应用只是一个简单的单Vue应用,没有用vue-router、vuex、webpack等,但是组件没有渲染,iframe中可以正常显示
控制台没有任何报错
image
image
image

是index.html的内联js没有执行吗?

@yiludege
Copy link
Collaborator

简单的单vue应用可以给一个示例链接吗,index.html的内联js会执行的

@yiludege
Copy link
Collaborator

yiludege commented Aug 10, 2022

明白大概的问题了,window.onload事件应该不会执行,导致这个问题

把 window.onload = 删除掉试试?

@jawn-ha
Copy link
Author

jawn-ha commented Aug 11, 2022

明白大概的问题了,window.onload事件应该不会执行,导致这个问题

把 window.onload = 删除掉试试?

删掉真就可以了

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