You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我使用一个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)
我使用一个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方法了(初始化就加载此模块时没问题)。
请问大神知道是什么原因吗,谢谢指教!
The text was updated successfully, but these errors were encountered: