是否可以在路由上面作一个动态加载的组件
- Dominant language
- Vue
- Stars
- 16.4k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
除了 component: resolve => { require(['@//views/error-page/403.vue'], resolve); }
把 store.registerModule('' ,x); 的功能也一起揉进去。像 Ant Design 那样的
component: dynamicWrapper(app, ['user', 'login'], () => import('../layouts/BasicLayout')),
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining the router configuration around the dynamic 403.vue component and the store.registerModule usage. Compare the requested behavior with the dynamicWrapper example for ../layouts/BasicLayout, then define how route loading and module registration should work together. Done means a route can dynamically load its component and register the requested store modules without manual setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100