vue-router Android sometimes does not execute

Description: In the project, sometimes the Android machine does not execute

this.$router.push()
this.$router.go(0)

and so on.

Solution: Check the related issues and find that there are some problems with ES6 syntax support on Android.

npm install --save-dev babel-polyfill


main.js
1.require("babel-polyfill");

2.import "babel-polyfill";


webpack
3.module.exports = {

  entry: ["babel-polyfill", "./app/js"]

};

 

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324156002&siteId=291194637