会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
墨墨君
博客园
首页
新随笔
联系
管理
订阅
2019年4月11日
使用require.contex()自动构建vue 路由, 全局组件
摘要: //自动化部署路由 const requireComponent = require.context('../page', true, /\.vue$/); const routes = requireComponent.keys().map(fileName => { // 获取组件配置 const componentConfig = requireComponent(file...
阅读全文
posted @ 2019-04-11 13:44 墨墨君
阅读(922)
评论(1)
推荐(1)
编辑
公告