vue-router的4.0.0-alpha.6中的component(vue router)
2022-03-02
import effect from '@/pages/effect.vue';// effect通过import导出的方式会爆出类型不匹配,component识别出的类型为undefinedconst router = createRouter({ routes: [ { path: '/',name: 'login',component: () => import('@/pages/login/login.vue') }, { path: '/reactive',component: () => import('@/pages/login/reactive.vue') }, { path: '/effect',component: effect }]})