在进行跳转的时候报错 app.js:87499 Uncaught (in promise) NavigationDuplicated?{_name: "NavigationDuplicated", name: "NavigationDuplicated", message: "Navigating to current location ("/yunshuattr") is not allowed", stack: "…
vue-cli初始化项目,开发环境运行项目使用了webpack-dev-server,而最新版本webpack-dev-server@2.9.1运行项目时,并不能成功的把es6语法转化为es5,所以在不支持es6的浏览器中会报错例如钉钉.UC浏览器等: Uncaught SyntaxError: Use of const in strict mode 解决办法: 将webpack-dev-server版本降为2.7.1重新安装即可 亲测有效. 参考:https://github.com/vuej…