npm运行正常
但浏览器报错:
解决方法:VueRouter的引入不能用npm安装时自带的“import VueRouter from ‘./router’”,要换成“import VueRouter from ‘vue-router’”
npm运行正常
但浏览器报错:
解决方法:VueRouter的引入不能用npm安装时自带的“import VueRouter from ‘./router’”,要换成“import VueRouter from ‘vue-router’”