1、js,路由传参
this.$router.push({name:'Home',params:{}}) 不传参数 可以params:{}忽略不写-
2、js引入图片
require('@/img/energy_normal.png')
3、关于Vue中的NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated"}
加一段话,即可解决:
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err);
};