Cannot find module '@/views/monitor/online/index'

// 路由懒加载 (原来写法)
// export const loadView = (view) => {
//   return () => import(`@/views/${view}`)
// }

//改为新写法
export const loadView = (view) => {
  return (resolve) => require([`@/views/${view}`], resolve)
};

 

posted @ 2020-08-27 09:41  欣欣点灯  阅读(655)  评论(0编辑  收藏  举报