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

求帮助 #9

Open
Jay-Ivy opened this issue Sep 5, 2020 · 0 comments
Open

求帮助 #9

Jay-Ivy opened this issue Sep 5, 2020 · 0 comments

Comments

@Jay-Ivy
Copy link

Jay-Ivy commented Sep 5, 2020

我使用一个vue作为主应用,然后接入3个子应用,每个子应用(自带vue-router)初始化刷新加载都没问题。但是直接使用pushState变更url地址后切换其他子应用时就会报错:提示加载模块失败
vue-router.esm.js?8c4f:1924 Error: Loading chunk page-sysmgr-user-index failed.
(missing: null)
at HTMLScriptElement.onScriptComplete (app.js:828)
at success (dynamicAppend.js?43c9:155)
at schedule (index.js?50b2:213)
at eval (index.js?50b2:221)
at new Promise ()
at eval (index.js?50b2:220)

但是这个模块JS明明是存在正确的,且已经触发了子应用暴露的mount方法的,但是由于模块加载失败,马上又触发了子应用的unmount方法了(初始化就加载此模块时没问题)。

请问大神知道是什么原因吗,谢谢指教!

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

1 participant