Deployment server access after the vue project is packaged promise error is not defined in the lower version browser

    The
  1. project uses axios, packaging to open Index.html as a local file and does not report errors in a lower version browser, but once deployed to the server, it will report errors that are not defined by promise.
  2. tried to introduce the babel-polyfill library, but it can"t be solved yet.

clipboard.png


does babel-polyfill be referenced in the source code? Not only npm install is enough, but also import "babel-polyfill"

in the source code.
Menu