路由不跳转,还报错,router 文件夹下的 index.js 代码如下:
错误的原因是把 component 写成了 components
import manage from '../views/manage/manage.vue'
import testManage from "../views/manage/StudentManage/testManage";const routes = [{
path: '/',name: 'manage',component: manage,children: [{
path:'testManage',components:testManage}]},{
path: '*',name: 'manage',component: manage}
]
export default routes