vue 组件路由问题

下面是代码

下面是前端显示代码

下面是前台显示

报错内容

vue-router] Non-nested routes must include a leading slash character. Fix the following routes: 
- login

解决办法在index.js路由配置中

修改后

原文地址:https://www.cnblogs.com/qzdd/p/12825570.html