项目场景:
Component "default" in record with path "/build-detail" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.问题描述:
单击跳转页面需要单击二次。
原因分析:
好像是路由要使用import不使用require。解决方案:
引入路由使用 component: () => import(’@/views/videoMonitor/video’),给组件添加name