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

路由采用require方式引入正常显示,但是采用懒加载的形式引入,组件无法显示在页面。 #2694

Closed
surplus-cat opened this Issue Apr 4, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@surplus-cat
Copy link

surplus-cat commented Apr 4, 2019

HomeMain: require('@/views/index/mainIndex.vue'), 这种形式引入可以正常访问;

const view = (path) => {
return r => require.ensure([], () => r(require(@/views/${path}.vue)), 'thunk')
};

AddArticle: view('article/addArticle'), 而这种类型的引入 却无法显示,通过开发者工具查看无Dom元素

@vue-bot

This comment has been minimized.

Copy link

vue-bot commented Apr 4, 2019

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

@vue-bot vue-bot closed this Apr 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.