问答 / 0 / 5 / 创建于 2年前
vue3通过yarn打包
Uncaught (in promise) TypeError: l.then is not a function
错误: { path: '/401', name: '401', component: import('@/views/errors/401.vue') } 正确: { path: '/401', name: '401', component: () => import('@/views/errors/401.vue') }
吐槽: 官方的锅 要么都不行,要么都行,才是一个好的项目。
route/index.js就是这样用的呀
两个闭包了
component: ArticleList
我要举报该,理由是:
吐槽: 官方的锅
要么都不行,要么都行,才是一个好的项目。
route/index.js就是这样用的呀