错误提示如下
This relative module was not found:
* ./components/Login.vue in ./src/router/index.js
然后我去检查index.js文件
内容如下
import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'//这里我引入的时候少了一个点,看着人家教程写的,够坑呀
所以引入的时候要注意