在我的Vue Typescript应用程序上添加/otp-validation
路由时出现此异常错误。
vue-router.esm.js?8c4f:16 [vue-router] Failed to resolve async component default: TypeError: Cannot read property 'call' of undefined
Route.ts
{
path: '/forget-password',
component: () => import('../app/auth/components/forget-password.component.vue'),
},
{
path: '/otp-validation',
component: () => import('../app/auth/components/otp-validation.component.vue'),
},
因此,我使用了忘记密码文件更改了otp验证,并且它可以正常工作,并且otp验证和忘记密码文件是相同的。
请帮助我。